From b58aa26ef3cb7533572bdcd96b2c22b937feb6d7 Mon Sep 17 00:00:00 2001 From: Marius <24592972+gilbN@users.noreply.github.com> Date: Thu, 13 May 2021 18:56:41 +0200 Subject: [PATCH] domain fixes for unraid login theme --- CSS/addons/unraid/login-page/custom_login.sh | 22 +++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) 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 "\@