Browse Source

hotio paths

pull/240/head
gilbN 4 years ago
parent
commit
a0bac70dec
  1. 4
      nzbget/Dockerfile
  2. 10
      nzbget/root/etc/cont-init.d/98-themepark
  3. 4
      plex/Dockerfile
  4. 12
      plex/root/etc/cont-init.d/98-themepark
  5. 4
      qbittorrent/Dockerfile
  6. 1
      radarr/Dockerfile
  7. 15
      radarr/root/etc/cont-init.d/98-themepark
  8. 3
      sonarr/Dockerfile
  9. 15
      sonarr/root/etc/cont-init.d/98-themepark

4
nzbget/Dockerfile

@ -1,6 +1,6 @@
FROM scratch
LABEL maintainer="GilbN"
LABEL maintainer="GilbN"
LABEL app="NZBGet"
# copy local files.
COPY root/ /

10
nzbget/root/etc/cont-init.d/98-themepark

@ -4,6 +4,7 @@ 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\
@ -20,12 +21,17 @@ 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/nzbget/webui/index.html; then
if ! grep -q "${TP_DOMAIN}" ${APP_FILEPATH}; then
echo '---------------------------'
echo '| Adding the stylesheet |'
echo '---------------------------'
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/theme.park\/CSS\/themes\/nzbget\/${TP_THEME}.css'><\/head> /g" /app/nzbget/webui/index.html
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/theme.park\/CSS\/themes\/nzbget\/${TP_THEME}.css'><\/head> /g" ${APP_FILEPATH}
printf 'Stylesheet set to %s\n' "${TP_THEME}
"
fi

4
plex/Dockerfile

@ -1,6 +1,6 @@
FROM scratch
LABEL maintainer="GilbN"
LABEL maintainer="GilbN"
LABEL app="Plex"
# copy local files.
COPY root/ /

12
plex/root/etc/cont-init.d/98-themepark

@ -4,6 +4,7 @@ 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\
@ -20,12 +21,17 @@ if [[ -z ${TP_THEME} ]]; then
TP_THEME='organizr-dark'
fi
# Adding stylesheets
if ! grep -q "${TP_DOMAIN}" /usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html; then
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
echo '---------------------------'
echo '| Adding the stylesheet |'
echo '---------------------------'
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/theme.park\/CSS\/themes\/plex\/${TP_THEME}.css'><\/head> /g" /usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/theme.park\/CSS\/themes\/plex\/${TP_THEME}.css'><\/head> /g" ${APP_FILEPATH}
printf 'Stylesheet set to %s\n' "${TP_THEME}
"
fi

4
qbittorrent/Dockerfile

@ -1,7 +1,7 @@
FROM scratch
LABEL maintainer="GilbN"
LABEL maintainer="GilbN"
LABEL app="Qbittorrent"
# copy local files.
COPY root/ /

1
radarr/Dockerfile

@ -1,6 +1,7 @@
FROM scratch
LABEL maintainer="GilbN"
LABEL app="Radarr"
# copy local files.
COPY root/ /

15
radarr/root/etc/cont-init.d/98-themepark

@ -4,9 +4,11 @@ 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"
# Set default
@ -20,15 +22,20 @@ 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/radarr/bin/UI/index.html; then
if ! grep -q "${TP_DOMAIN}" ${APP_FILEPATH}; then
echo '---------------------------'
echo '| Adding the stylesheet |'
echo '---------------------------'
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/theme.park\/CSS\/themes\/radarr\/${TP_THEME}.css'><\/head> /g" /app/radarr/bin/UI/index.html
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/theme.park\/CSS\/themes\/radarr\/${TP_THEME}.css'><\/head> /g" ${APP_FILEPATH}
printf 'Stylesheet set to %s\n' "${TP_THEME}"
if [[ -n ${TP_ADDON} ]]; then
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/theme.park\/CSS\/addons\/radarr\/${TP_ADDON}.css'><\/head> /g" /app/radarr/bin/UI/index.html
printf 'Added custom addon: %s\n\n' "${TP_ADDON}"
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/theme.park\/CSS\/addons\/radarr\/${TP_ADDON}.css'><\/head> /g" ${APP_FILEPATH}
printf 'Added custom addon: %s\n\n' "${TP_ADDON}"
fi
fi

3
sonarr/Dockerfile

@ -1,6 +1,7 @@
FROM scratch
LABEL maintainer="GilbN"
LABEL maintainer="GilbN"
LABEL app="Sonarr"
# copy local files.
COPY root/ /

15
sonarr/root/etc/cont-init.d/98-themepark

@ -4,9 +4,11 @@ echo '---------------------------'
echo '| Sonarr theme.park Mod |'
echo '---------------------------'
# Display variables for troubleshooting
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"
# Set default
@ -20,15 +22,20 @@ 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/sonarr/bin/UI/index.html; then
if ! grep -q "${TP_DOMAIN}" ${APP_FILEPATH}; then
echo '---------------------------'
echo '| Adding the stylesheet |'
echo '---------------------------'
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/theme.park\/CSS\/themes\/sonarr\/${TP_THEME}.css'><\/head> /g" /app/sonarr/bin/UI/index.html
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/theme.park\/CSS\/themes\/sonarr\/${TP_THEME}.css'><\/head> /g" ${APP_FILEPATH}
printf 'Stylesheet set to %s\n' "${TP_THEME}"
if [[ -n ${TP_ADDON} ]]; then
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/theme.park\/CSS\/addons\/sonarr\/${TP_ADDON}.css'><\/head> /g" /app/sonarr/bin/UI/index.html
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/theme.park\/CSS\/addons\/sonarr\/${TP_ADDON}.css'><\/head> /g" ${APP_FILEPATH}
printf 'Added custom addon: %s\n\n' "${TP_ADDON}"
fi
fi
Loading…
Cancel
Save