From 609841f8f3b249d79d7f65762ca22b0d059063e5 Mon Sep 17 00:00:00 2001 From: gilbN <24592972+gilbN@users.noreply.github.com> Date: Sun, 18 Apr 2021 17:36:01 +0200 Subject: [PATCH] more hotio container paths --- bazarr/Dockerfile | 4 ++-- bazarr/root/etc/cont-init.d/98-themepark | 13 +++++++++---- jackett/Dockerfile | 4 ++-- jackett/root/etc/cont-init.d/98-themepark | 10 ++++++++-- jellyfin/Dockerfile | 4 ++-- lidarr/Dockerfile | 4 ++-- lidarr/root/etc/cont-init.d/98-themepark | 13 +++++++++---- nzbget/root/etc/cont-init.d/98-themepark | 18 ++++++++---------- plex/root/etc/cont-init.d/98-themepark | 19 +++++++++---------- qbittorrent/root/etc/cont-init.d/98-themepark | 19 ++++++++++++------- radarr/root/etc/cont-init.d/98-themepark | 18 +++++++++--------- readarr/root/etc/cont-init.d/98-themepark | 10 ++++++++-- sabnzbd/Dockerfile | 4 ++-- sabnzbd/root/etc/cont-init.d/98-themepark | 19 ++++++++++++------- sonarr/root/etc/cont-init.d/98-themepark | 18 +++++++++--------- tautulli/Dockerfile | 4 ++-- tautulli/root/etc/cont-init.d/98-themepark | 13 +++++++++---- 17 files changed, 114 insertions(+), 80 deletions(-) diff --git a/bazarr/Dockerfile b/bazarr/Dockerfile index 5134bd93..447fe98c 100644 --- a/bazarr/Dockerfile +++ b/bazarr/Dockerfile @@ -1,6 +1,6 @@ FROM scratch - LABEL maintainer="GilbN" - +LABEL maintainer="GilbN" +LABEL app="Bazarr" # copy local files. COPY root/ / diff --git a/bazarr/root/etc/cont-init.d/98-themepark b/bazarr/root/etc/cont-init.d/98-themepark index de34d5dd..de51f756 100644 --- a/bazarr/root/etc/cont-init.d/98-themepark +++ b/bazarr/root/etc/cont-init.d/98-themepark @@ -9,6 +9,12 @@ echo -e "Variables set:\\n\ 'TP_DOMAIN'=${TP_DOMAIN}\\n\ 'TP_THEME'=${TP_THEME}\\n" +APP_FILEPATH='/app/bazarr/bin/views/_main.html' +if [ "${TP_HOTIO}" = true ]; then + echo 'Changing to Hotio file path!' + APP_FILEPATH='/app/bin/views/_main.html' +fi + # Set default if [[ -z ${TP_DOMAIN} ]]; then echo 'No domain set, defaulting to gilbn.github.io' @@ -21,11 +27,10 @@ if [[ -z ${TP_THEME} ]]; then fi # Adding stylesheets -if ! grep -q "${TP_DOMAIN}" /app/bazarr/bin/views/_main.html; then +if ! grep -q "${TP_DOMAIN}" "${APP_FILEPATH}"; then echo '---------------------------' echo '| Adding the stylesheet |' echo '---------------------------' - sed -i "s/<\/head>/<\/head> /g" /app/bazarr/bin/views/_main.html - printf 'Stylesheet set to %s\n' "${TP_THEME} - " + sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}" + printf 'Stylesheet set to %s\n' "${TP_THEME}" fi \ No newline at end of file diff --git a/jackett/Dockerfile b/jackett/Dockerfile index c02206ef..4213685c 100644 --- a/jackett/Dockerfile +++ b/jackett/Dockerfile @@ -1,6 +1,6 @@ FROM scratch - LABEL maintainer="GilbN" - +LABEL maintainer="GilbN" +LABEL app="Jackett" # copy local files. COPY root/ / \ No newline at end of file diff --git a/jackett/root/etc/cont-init.d/98-themepark b/jackett/root/etc/cont-init.d/98-themepark index 493372a7..aa4a9acc 100644 --- a/jackett/root/etc/cont-init.d/98-themepark +++ b/jackett/root/etc/cont-init.d/98-themepark @@ -9,6 +9,12 @@ echo -e "Variables set:\\n\ 'TP_DOMAIN'=${TP_DOMAIN}\\n\ 'TP_THEME'=${TP_THEME}\\n" +APP_FILEPATH='/app/Jackett/Content/index.html' +if [ "${TP_HOTIO}" = true ]; then + echo 'Changing to Hotio file path!' + APP_FILEPATH='/app/Content/index.html' +fi + # Set default if [[ -z ${TP_DOMAIN} ]]; then echo 'No domain set, defaulting to gilbn.github.io' @@ -21,11 +27,11 @@ if [[ -z ${TP_THEME} ]]; then fi # Adding stylesheets -if ! grep -q "${TP_DOMAIN}" /app/Jackett/Content/index.html; then +if ! grep -q "${TP_DOMAIN}" "${APP_FILEPATH}"; then echo '---------------------------' echo '| Adding the stylesheet |' echo '---------------------------' - sed -i "s/<\/head>/<\/head> /g" /app/Jackett/Content/index.html + sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}" printf 'Stylesheet set to %s\n' "${TP_THEME} " fi \ No newline at end of file diff --git a/jellyfin/Dockerfile b/jellyfin/Dockerfile index 0eff97af..daa334fb 100644 --- a/jellyfin/Dockerfile +++ b/jellyfin/Dockerfile @@ -1,6 +1,6 @@ FROM scratch - LABEL maintainer="GilbN" - +LABEL maintainer="GilbN" +LABEL app="Jellyfin" # copy local files. COPY root/ / \ No newline at end of file diff --git a/lidarr/Dockerfile b/lidarr/Dockerfile index 0eff97af..d93842e4 100644 --- a/lidarr/Dockerfile +++ b/lidarr/Dockerfile @@ -1,6 +1,6 @@ FROM scratch - LABEL maintainer="GilbN" - +LABEL maintainer="GilbN" +LABEL app="Lidarr" # copy local files. COPY root/ / \ No newline at end of file diff --git a/lidarr/root/etc/cont-init.d/98-themepark b/lidarr/root/etc/cont-init.d/98-themepark index d10e644d..1ac5bbbb 100644 --- a/lidarr/root/etc/cont-init.d/98-themepark +++ b/lidarr/root/etc/cont-init.d/98-themepark @@ -9,6 +9,12 @@ echo -e "Variables set:\\n\ 'TP_DOMAIN'=${TP_DOMAIN}\\n\ 'TP_THEME'=${TP_THEME}\\n" +APP_FILEPATH='/app/lidarr/bin/UI/index.html' +if [ "${TP_HOTIO}" = true ]; then + echo 'Changing to Hotio file path!' + APP_FILEPATH='/app/bin/UI/index.html' +fi + # Set default if [[ -z ${TP_DOMAIN} ]]; then echo 'No domain set, defaulting to gilbn.github.io' @@ -21,11 +27,10 @@ if [[ -z ${TP_THEME} ]]; then fi # Adding stylesheets -if ! grep -q "${TP_DOMAIN}" /app/lidarr/bin/UI/index.html; then +if ! grep -q "${TP_DOMAIN}" "${APP_FILEPATH}"; then echo '---------------------------' echo '| Adding the stylesheet |' echo '---------------------------' - sed -i "s/<\/head>/<\/head> /g" /app/lidarr/bin/UI/index.html - printf 'Stylesheet set to %s\n' "${TP_THEME} - " + sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}" + printf 'Stylesheet set to %s\n' "${TP_THEME}" fi \ No newline at end of file diff --git a/nzbget/root/etc/cont-init.d/98-themepark b/nzbget/root/etc/cont-init.d/98-themepark index 5aec521c..58784262 100644 --- a/nzbget/root/etc/cont-init.d/98-themepark +++ b/nzbget/root/etc/cont-init.d/98-themepark @@ -4,12 +4,16 @@ echo '---------------------------' echo '| NZBGet theme.park Mod |' echo '---------------------------' -APP_FILEPATH='/app/nzbget/webui/index.html' # Display variables for troubleshooting echo -e "Variables set:\\n\ 'TP_DOMAIN'=${TP_DOMAIN}\\n\ 'TP_THEME'=${TP_THEME}\\n" +APP_FILEPATH='/app/nzbget/webui/index.html' +if [ "${TP_HOTIO}" = true ]; then + echo 'Changing to Hotio file path!' + APP_FILEPATH='/app/webui/index.html' +fi # Set default if [[ -z ${TP_DOMAIN} ]]; then echo 'No domain set, defaulting to gilbn.github.io' @@ -21,17 +25,11 @@ if [[ -z ${TP_THEME} ]]; then TP_THEME='organizr-dark' fi -if [ "${TP_HOTIO}" = true ]; then - echo 'Changing to Hotio file paths!' - APP_FILEPATH='/app/webui/index.html' -fi - # Adding stylesheets -if ! grep -q "${TP_DOMAIN}" ${APP_FILEPATH}; then +if ! grep -q "${TP_DOMAIN}" "${APP_FILEPATH}"; then echo '---------------------------' echo '| Adding the stylesheet |' echo '---------------------------' - sed -i "s/<\/head>/<\/head> /g" ${APP_FILEPATH} - printf 'Stylesheet set to %s\n' "${TP_THEME} - " + sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}" + printf 'Stylesheet set to %s\n' "${TP_THEME}" fi \ No newline at end of file diff --git a/plex/root/etc/cont-init.d/98-themepark b/plex/root/etc/cont-init.d/98-themepark index 4d96508c..dd8d3b7e 100644 --- a/plex/root/etc/cont-init.d/98-themepark +++ b/plex/root/etc/cont-init.d/98-themepark @@ -4,12 +4,17 @@ echo '-------------------------' echo '| Plex theme.park Mod |' echo '-------------------------' -APP_FILEPATH='/usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html' # Display variables for troubleshooting echo -e "Variables set:\\n\ 'TP_DOMAIN'=${TP_DOMAIN}\\n\ 'TP_THEME'=${TP_THEME}\\n" +APP_FILEPATH='/usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html' +if [ "${TP_HOTIO}" = true ]; then + echo 'Changing to Hotio file path!' + APP_FILEPATH='/app/usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html' +fi + # Set default if [[ -z ${TP_DOMAIN} ]]; then echo 'No domain set, defaulting to gilbn.github.io' @@ -21,17 +26,11 @@ if [[ -z ${TP_THEME} ]]; then TP_THEME='organizr-dark' fi -if [ "${TP_HOTIO}" = true ]; then - echo 'Changing to Hotio file paths!' - APP_FILEPATH='/app/usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html' -fi - # Adding stylesheets -if ! grep -q "${TP_DOMAIN}" ${APP_FILEPATH}; then +if ! grep -q "${TP_DOMAIN}" "${APP_FILEPATH}"; then echo '---------------------------' echo '| Adding the stylesheet |' echo '---------------------------' - sed -i "s/<\/head>/<\/head> /g" ${APP_FILEPATH} - printf 'Stylesheet set to %s\n' "${TP_THEME} - " + sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}" + printf 'Stylesheet set to %s\n' "${TP_THEME}" fi \ No newline at end of file diff --git a/qbittorrent/root/etc/cont-init.d/98-themepark b/qbittorrent/root/etc/cont-init.d/98-themepark index 25397c6a..674ab365 100644 --- a/qbittorrent/root/etc/cont-init.d/98-themepark +++ b/qbittorrent/root/etc/cont-init.d/98-themepark @@ -4,6 +4,11 @@ echo '------------------------------' echo '| qBittorrent theme.park Mod |' echo '------------------------------' +APP_FILEPATH='/config/qBittorrent/qBittorrent.conf' +if [ "${TP_HOTIO}" = true ]; then + echo 'Changing to Hotio file path!' + APP_FILEPATH='/config/config/qBittorrent/qBittorrent.conf' +fi if ! [[ -x "$(command -v svn)" ]]; then echo '--------------------------' echo '| Installing svn package |' @@ -65,24 +70,24 @@ if ! grep -q "${TP_DOMAIN}" /themepark/private/index.html; then printf 'Stylesheet set to %s on private download.html\n\n' "${TP_THEME}" fi -if ! grep -q "WebUI\\\RootFolder" /config/qBittorrent/qBittorrent.conf; then +if ! grep -q "WebUI\\\RootFolder" "${APP_FILEPATH}"; then echo '--------------------------------------' echo '| Adding WebUI\RootFolder=/themepark |' echo '--------------------------------------' - sed -i -e '$aWebUI\\RootFolder=/themepark' /config/qBittorrent/qBittorrent.conf; + sed -i -e '$aWebUI\\RootFolder=/themepark' "${APP_FILEPATH}"; fi -if ! grep -q "WebUI\\\AlternativeUIEnabled" /config/qBittorrent/qBittorrent.conf; then +if ! grep -q "WebUI\\\AlternativeUIEnabled" "${APP_FILEPATH}"; then echo '------------------------------------------' echo '| Adding WebUI\AlternativeUIEnabled=true |' echo '------------------------------------------' - sed -i -e '$aWebUI\\AlternativeUIEnabled=true' /config/qBittorrent/qBittorrent.conf; + sed -i -e '$aWebUI\\AlternativeUIEnabled=true' "${APP_FILEPATH}"; fi -if ! grep -q "WebUI\\\RootFolder=/themepark" /config/qBittorrent/qBittorrent.conf || ! grep -q "WebUI\\\AlternativeUIEnabled=true" /config/qBittorrent/qBittorrent.conf; then +if ! grep -q "WebUI\\\RootFolder=/themepark" "${APP_FILEPATH}" || ! grep -q "WebUI\\\AlternativeUIEnabled=true" "${APP_FILEPATH}"; then echo '-------------------------------------------------------' echo '| Updating RootFolder and AlternativeUIEnabled values |' echo '-------------------------------------------------------' - sed -i "s/WebUI\\\AlternativeUIEnabled=.*$/WebUI\\\AlternativeUIEnabled=true/g" /config/qBittorrent/qBittorrent.conf; - sed -i "s/WebUI\\\RootFolder=.*$/WebUI\\\RootFolder=\/themepark/g" /config/qBittorrent/qBittorrent.conf; + sed -i "s/WebUI\\\AlternativeUIEnabled=.*$/WebUI\\\AlternativeUIEnabled=true/g" "${APP_FILEPATH}"; + sed -i "s/WebUI\\\RootFolder=.*$/WebUI\\\RootFolder=\/themepark/g" "${APP_FILEPATH}"; fi \ No newline at end of file diff --git a/radarr/root/etc/cont-init.d/98-themepark b/radarr/root/etc/cont-init.d/98-themepark index 77a21b7c..5fbf5cde 100644 --- a/radarr/root/etc/cont-init.d/98-themepark +++ b/radarr/root/etc/cont-init.d/98-themepark @@ -4,13 +4,18 @@ echo '---------------------------' echo '| Radarr theme.park Mod |' echo '---------------------------' -APP_FILEPATH='/app/radarr/bin/UI/index.html' # Display variables for troubleshooting echo -e "Variables set:\\n\ 'TP_DOMAIN'=${TP_DOMAIN}\\n\ 'TP_ADDON'=${TP_ADDON}\\n\ 'TP_THEME'=${TP_THEME}\\n" +APP_FILEPATH='/app/radarr/bin/UI/index.html' +if [ "${TP_HOTIO}" = true ]; then + echo 'Changing to Hotio file path!' + APP_FILEPATH='/app/bin/UI/index.html' +fi + # Set default if [[ -z ${TP_DOMAIN} ]]; then echo 'No domain set, defaulting to gilbn.github.io' @@ -22,20 +27,15 @@ if [[ -z ${TP_THEME} ]]; then TP_THEME='organizr-dark' fi -if [ "${TP_HOTIO}" = true ]; then - echo 'Changing to Hotio file paths!' - APP_FILEPATH='/app/bin/UI/index.html' -fi - # Adding stylesheets -if ! grep -q "${TP_DOMAIN}" ${APP_FILEPATH}; then +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 diff --git a/readarr/root/etc/cont-init.d/98-themepark b/readarr/root/etc/cont-init.d/98-themepark index 489b14c8..7a9c16d4 100644 --- a/readarr/root/etc/cont-init.d/98-themepark +++ b/readarr/root/etc/cont-init.d/98-themepark @@ -9,6 +9,12 @@ echo -e "Variables set:\\n\ 'TP_DOMAIN'=${TP_DOMAIN}\\n\ 'TP_THEME'=${TP_THEME}\\n" +APP_FILEPATH='/app/readarr/bin/UI/index.html' +if [ "${TP_HOTIO}" = true ]; then + echo 'Changing to Hotio file path!' + APP_FILEPATH='/app/bin/UI/index.html' +fi + # Set default if [[ -z ${TP_DOMAIN} ]]; then echo 'No domain set, defaulting to gilbn.github.io' @@ -21,11 +27,11 @@ if [[ -z ${TP_THEME} ]]; then fi # Adding stylesheets -if ! grep -q "${TP_DOMAIN}" /app/bin/UI/index.html; then +if ! grep -q "${TP_DOMAIN}" "${APP_FILEPATH}"; then echo '---------------------------' echo '| Adding the stylesheet |' echo '---------------------------' - sed -i "s/<\/head>/<\/head> /g" /app/bin/UI/index.html + sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}" printf 'Stylesheet set to %s\n' "${TP_THEME} " fi \ No newline at end of file diff --git a/sabnzbd/Dockerfile b/sabnzbd/Dockerfile index c02206ef..d15b6627 100644 --- a/sabnzbd/Dockerfile +++ b/sabnzbd/Dockerfile @@ -1,6 +1,6 @@ FROM scratch - LABEL maintainer="GilbN" - +LABEL maintainer="GilbN" +LABEL app="SABnzbd" # copy local files. COPY root/ / \ No newline at end of file diff --git a/sabnzbd/root/etc/cont-init.d/98-themepark b/sabnzbd/root/etc/cont-init.d/98-themepark index ec8cf259..5333b170 100644 --- a/sabnzbd/root/etc/cont-init.d/98-themepark +++ b/sabnzbd/root/etc/cont-init.d/98-themepark @@ -9,6 +9,12 @@ echo -e "Variables set:\\n\ 'TP_DOMAIN'=${TP_DOMAIN}\\n\ 'TP_THEME'=${TP_THEME}\\n" +APP_FILEPATH='/app/sabnzbd' +if [ "${TP_HOTIO}" = true ]; then + echo 'Changing to Hotio file path!' + APP_FILEPATH='/app' +fi + # Set default if [[ -z ${TP_DOMAIN} ]]; then echo 'No domain set, defaulting to gilbn.github.io' @@ -21,14 +27,13 @@ if [[ -z ${TP_THEME} ]]; then fi # Adding stylesheets -if ! grep -q "${TP_DOMAIN}" /app/sabnzbd/interfaces/Glitter/templates/main.tmpl; then +if ! grep -q "${TP_DOMAIN}" "${APP_FILEPATH}/interfaces/Glitter/templates/main.tmpl"; then echo '---------------------------' echo '| Adding the stylesheet |' echo '---------------------------' - sed -i "s/<\/head>/<\/head> /g" /app/sabnzbd/interfaces/Glitter/templates/main.tmpl - sed -i "s/<\/head>/<\/head> /g" /app/sabnzbd/interfaces/Config/templates/_inc_header_uc.tmpl - sed -i "s/<\/head>/<\/head> /g" /app/sabnzbd/interfaces/Config/templates/login/main.tmpl - sed -i "s/<\/head>/<\/head> /g" /app/sabnzbd/interfaces/wizard/inc_top.tmpl - printf 'Stylesheet set to %s\n' "${TP_THEME} - " + sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}/interfaces/Glitter/templates/main.tmpl" + sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}/interfaces/Config/templates/_inc_header_uc.tmpl" + sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}/interfaces/Config/templates/login/main.tmpl" + sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}/interfaces/wizard/inc_top.tmpl" + printf 'Stylesheet set to %s\n' "${TP_THEME}" fi \ No newline at end of file diff --git a/sonarr/root/etc/cont-init.d/98-themepark b/sonarr/root/etc/cont-init.d/98-themepark index af49afb4..06014620 100644 --- a/sonarr/root/etc/cont-init.d/98-themepark +++ b/sonarr/root/etc/cont-init.d/98-themepark @@ -4,13 +4,18 @@ echo '---------------------------' echo '| Sonarr theme.park Mod |' echo '---------------------------' -APP_FILEPATH='/app/sonarr/bin/UI/index.html' # Display variables for troubleshooting echo -e "Variables set:\\n\ 'TP_DOMAIN'=${TP_DOMAIN}\\n\ 'TP_ADDON'=${TP_ADDON}\\n\ 'TP_THEME'=${TP_THEME}\\n" +APP_FILEPATH='/app/sonarr/bin/UI/index.html' +if [ "${TP_HOTIO}" = true ]; then + echo 'Changing to Hotio file path!' + APP_FILEPATH='/app/bin/UI/index.html' +fi + # Set default if [[ -z ${TP_DOMAIN} ]]; then echo 'No domain set, defaulting to gilbn.github.io' @@ -22,20 +27,15 @@ if [[ -z ${TP_THEME} ]]; then TP_THEME='organizr-dark' fi -if [ "${TP_HOTIO}" = true ]; then - echo 'Changing to Hotio file paths!' - APP_FILEPATH='/app/bin/UI/index.html' -fi - # Adding stylesheets -if ! grep -q "${TP_DOMAIN}" ${APP_FILEPATH}; then +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 diff --git a/tautulli/Dockerfile b/tautulli/Dockerfile index c02206ef..bc3e07fc 100644 --- a/tautulli/Dockerfile +++ b/tautulli/Dockerfile @@ -1,6 +1,6 @@ FROM scratch - LABEL maintainer="GilbN" - +LABEL maintainer="GilbN" +LABEL app="Tautulli" # copy local files. COPY root/ / \ No newline at end of file diff --git a/tautulli/root/etc/cont-init.d/98-themepark b/tautulli/root/etc/cont-init.d/98-themepark index 713e9907..e90c8636 100644 --- a/tautulli/root/etc/cont-init.d/98-themepark +++ b/tautulli/root/etc/cont-init.d/98-themepark @@ -9,6 +9,12 @@ echo -e "Variables set:\\n\ 'TP_DOMAIN'=${TP_DOMAIN}\\n\ 'TP_THEME'=${TP_THEME}\\n" +APP_FILEPATH='/app/tautulli/data/interfaces/default/base.html' +if [ "${TP_HOTIO}" = true ]; then + echo 'Changing to Hotio file path!' + APP_FILEPATH='/app/data/interfaces/default/base.html' +fi + # Set default if [[ -z ${TP_DOMAIN} ]]; then echo 'No domain set, defaulting to gilbn.github.io' @@ -21,11 +27,10 @@ if [[ -z ${TP_THEME} ]]; then fi # Adding stylesheets -if ! grep -q "${TP_DOMAIN}" /app/tautulli/data/interfaces/default/base.html; then +if ! grep -q "${TP_DOMAIN}" "${APP_FILEPATH}"; then echo '---------------------------' echo '| Adding the stylesheet |' echo '---------------------------' - sed -i "s/<\/head>/<\/head> /g" /app/tautulli/data/interfaces/default/base.html - printf 'Stylesheet set to %s\n' "${TP_THEME} - " + sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}" + printf 'Stylesheet set to %s\n' "${TP_THEME}" fi \ No newline at end of file