From 6daaabbbb8a3c5c33252816f80caf03a3ecee184 Mon Sep 17 00:00:00 2001 From: GilbN Date: Sat, 22 Oct 2022 19:02:01 +0200 Subject: [PATCH] removed < version 6.10 logic. Users must update LOGIN_PAGE var manually if on < v6.10 --- css/addons/unraid/login-page/custom_login.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/css/addons/unraid/login-page/custom_login.sh b/css/addons/unraid/login-page/custom_login.sh index 19abdce1..a6dbbee2 100644 --- a/css/addons/unraid/login-page/custom_login.sh +++ b/css/addons/unraid/login-page/custom_login.sh @@ -16,6 +16,8 @@ DISABLE_THEME="false" # If your custom domain uses a subfolder you must escape the forward slash. (custom.com\/subfolder) + # If you are on an Unraid version older than 6.10 you need to update the LOGIN_PAGE variable to "/usr/local/emhttp/login.php" + echo -e "Variables set:\\n\ TYPE = ${TYPE}\\n\ THEME = ${THEME}\\n\ @@ -25,16 +27,15 @@ ADD_JS = ${ADD_JS}\\n\ JS = ${JS}\\n\ DISABLE_THEME = ${DISABLE_THEME}\\n" +echo "NOTE: Change the LOGIN_PAGE variable to /usr/local/emhttp/login.php if you are on a version older than 6.10" +LOGIN_PAGE="/usr/local/emhttp/webGui/include/.login.php" + + IFS='"' set $(cat /etc/unraid-version) UNRAID_VERSION="$2" IFS=$' \t\n' -LOGIN_PAGE="/usr/local/emhttp/login.php" -# Changing file path to login.php if version >= 6.10 -if [[ "${UNRAID_VERSION}" =~ ^6.10.* ]]; then -echo "Unraid version: ${UNRAID_VERSION}, changing path to login page" -LOGIN_PAGE="/usr/local/emhttp/webGui/include/.login.php" -fi +echo "Unraid version: ${UNRAID_VERSION}" # Restore login.php if [ ${DISABLE_THEME} = "true" ]; then