From b180226bd80e963ef4ee1329b9db75fc33e10e04 Mon Sep 17 00:00:00 2001 From: GilbN Date: Fri, 10 Jun 2022 23:00:39 +0200 Subject: [PATCH] Add SCHEME env, + sed some fixes --- css/addons/unraid/login-page/custom_login.sh | 21 ++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/css/addons/unraid/login-page/custom_login.sh b/css/addons/unraid/login-page/custom_login.sh index 0efd0511..9afd5a6a 100644 --- a/css/addons/unraid/login-page/custom_login.sh +++ b/css/addons/unraid/login-page/custom_login.sh @@ -1,14 +1,17 @@ #!/bin/bash TYPE="retro-terminal" THEME="green.css" -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. +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. +SCHEME="https" ADD_JS="true" JS="custom_text_header.js" DISABLE_THEME="false" echo -e "Variables set:\\n\ +TYPE = ${TYPE}\\n\ THEME = ${THEME}\\n\ DOMAIN = ${DOMAIN}\\n\ +SCHEME = ${SCHEME}\\n\ ADD_JS = ${ADD_JS}\\n\ JS = ${JS}\\n\ DISABLE_THEME = ${DISABLE_THEME}\\n" @@ -48,31 +51,33 @@ esac # Adding stylesheets if ! grep -q ${DOMAIN} ${LOGIN_PAGE}; then echo "Adding stylesheet" - sed -i -e "\@