From c83c9b1143c054cf92e23e9d854c91d30a5c8c54 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Mon, 18 Apr 2022 10:39:47 -0400 Subject: [PATCH] 2022-04-18 --- .../plex/plex-alt-logo/plex-alt-logo.css | 6 +- css/addons/unraid/login-page/custom_login.sh | 39 +++++++---- css/base/lidarr/lidarr-base.css | 45 ++----------- css/base/prowlarr/prowlarr-base.css | 47 +++---------- css/base/radarr/radarr-base.css | 52 +++----------- css/base/readarr/readarr-base.css | 46 ++----------- css/base/sonarr/sonarr-base.css | 52 +++----------- css/base/tautulli/tautulli-base.css | 12 ++++ css/base/whisparr/whisparr-base.css | 52 +++----------- docker-mods/swag/Dockerfile | 6 ++ .../swag/root/etc/cont-init.d/98-themepark | 67 +++++++++++++++++++ .../themepark.subdomain.conf.sample | 30 +++++++++ .../themepark.subfolder.conf.sample | 17 +++++ linux-amd64.Dockerfile | 6 +- linux-arm-v7.Dockerfile | 6 +- linux-arm64.Dockerfile | 6 +- 16 files changed, 225 insertions(+), 264 deletions(-) create mode 100644 docker-mods/swag/Dockerfile create mode 100644 docker-mods/swag/root/etc/cont-init.d/98-themepark create mode 100644 docker-mods/swag/root/themepark-confs/themepark.subdomain.conf.sample create mode 100644 docker-mods/swag/root/themepark-confs/themepark.subfolder.conf.sample diff --git a/css/addons/plex/plex-alt-logo/plex-alt-logo.css b/css/addons/plex/plex-alt-logo/plex-alt-logo.css index d5620694..8476b3a6 100644 --- a/css/addons/plex/plex-alt-logo/plex-alt-logo.css +++ b/css/addons/plex/plex-alt-logo/plex-alt-logo.css @@ -4,5 +4,9 @@ background-repeat: no-repeat; background-size: contain; margin: 0 10px; - width: 45px; + width: 40px; +} + +[class*="NavBar-plexLogo-"] svg { + display: none; } \ No newline at end of file diff --git a/css/addons/unraid/login-page/custom_login.sh b/css/addons/unraid/login-page/custom_login.sh index 60a2c2e7..0efd0511 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="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. ADD_JS="true" JS="custom_text_header.js" DISABLE_THEME="false" @@ -13,17 +13,28 @@ ADD_JS = ${ADD_JS}\\n\ JS = ${JS}\\n\ DISABLE_THEME = ${DISABLE_THEME}\\n" +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 + # Restore login.php if [ ${DISABLE_THEME} = "true" ]; then echo "Restoring backup of login.php" - cp -p /usr/local/emhttp/login.php.backup /usr/local/emhttp/login.php + cp -p ${LOGIN_PAGE}.backup ${LOGIN_PAGE} exit 0 fi # Backup login page if needed. -if [ ! -f /usr/local/emhttp/login.php.backup ]; then +if [ ! -f ${LOGIN_PAGE}.backup ]; then echo "Creating backup of login.php" - cp -p /usr/local/emhttp/login.php /usr/local/emhttp/login.php.backup + cp -p ${LOGIN_PAGE} ${LOGIN_PAGE}.backup fi # Use correct domain style @@ -35,33 +46,33 @@ case ${DOMAIN} in esac # Adding stylesheets -if ! grep -q ${DOMAIN} /usr/local/emhttp/login.php; then +if ! grep -q ${DOMAIN} ${LOGIN_PAGE}; then echo "Adding stylesheet" - sed -i -e "\@