diff --git a/sonarr/root/etc/cont-init.d/98-themepark b/sonarr/root/etc/cont-init.d/98-themepark index 06014620..84483cd7 100644 --- a/sonarr/root/etc/cont-init.d/98-themepark +++ b/sonarr/root/etc/cont-init.d/98-themepark @@ -18,10 +18,17 @@ fi # Set default if [[ -z ${TP_DOMAIN} ]]; then - echo 'No domain set, defaulting to gilbn.github.io' - TP_DOMAIN='gilbn.github.io' + echo 'No domain set, defaulting to theme-park.dev' + TP_DOMAIN='theme-park.dev' fi +case ${TP_DOMAIN} in + *"github.io"*) + echo "Switching to github.io URL style" + TP_DOMAIN="${TP_DOMAIN}\/theme.park" + ;; +esac + if [[ -z ${TP_THEME} ]]; then echo 'No theme set, defaulting to organizr-dark' TP_THEME='organizr-dark' @@ -32,10 +39,10 @@ if ! grep -q "${TP_DOMAIN}" "${APP_FILEPATH}"; then echo '---------------------------' echo '| Adding the stylesheet |' echo '---------------------------' - sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}" + sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}" printf 'Stylesheet set to %s\n' "${TP_THEME}" if [[ -n ${TP_ADDON} ]]; then - sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}" + sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}" printf 'Added custom addon: %s\n\n' "${TP_ADDON}" fi fi \ No newline at end of file