diff --git a/CSS/addons/unraid/login-page/custom_login.sh b/CSS/addons/unraid/login-page/custom_login.sh index fa4e32b6..bf6a6a68 100644 --- a/CSS/addons/unraid/login-page/custom_login.sh +++ b/CSS/addons/unraid/login-page/custom_login.sh @@ -1,7 +1,7 @@ #!/bin/bash TYPE="retro-terminal" THEME="green.css" -DOMAIN="gilbn.github.io" #if you update the domain after the script has been run, You must disable and re enable JS or the whole theme. +DOMAIN="theme-park.dev" #if you update the domain after the script has been run, You must disable and re enable JS or the whole theme. ADD_JS="true" JS="custom_text_header.js" DISABLE_THEME="false" @@ -26,34 +26,42 @@ if [ ! -f /usr/local/emhttp/login.php.backup ]; then cp -p /usr/local/emhttp/login.php /usr/local/emhttp/login.php.backup fi +# Use correct domain style +case ${DOMAIN} in + *"github.io"*) + echo "Switching to github.io URL style" + DOMAIN="${DOMAIN}\/theme.park" + ;; +esac + # Adding stylesheets if ! grep -q ${DOMAIN} /usr/local/emhttp/login.php; then echo "Adding stylesheet" - sed -i -e "\@