Browse Source

bazarr, lidarr, readarr mods

pull/149/head
gilbN 5 years ago
parent
commit
f7a39e9b6e
  1. 4
      bazarr/Dockerfile
  2. 31
      bazarr/root/etc/cont-init.d/98-themepark
  3. 4
      lidarr/Dockerfile
  4. 31
      lidarr/root/etc/cont-init.d/98-themepark
  5. 3
      radarr/root/etc/cont-init.d/98-themepark
  6. 4
      readarr/Dockerfile
  7. 31
      readarr/root/etc/cont-init.d/98-themepark
  8. 3
      sonarr/root/etc/cont-init.d/98-themepark

4
bazarr/Dockerfile

@ -0,0 +1,4 @@
FROM scratch
# copy local files
COPY root/ /

31
bazarr/root/etc/cont-init.d/98-themepark

@ -0,0 +1,31 @@
#!/usr/bin/with-contenv bash
echo '---------------------------'
echo '| Bazarr theme.park Mod |'
echo '---------------------------'
# Display variables for troubleshooting
echo -e "Variables set:\\n\
'TP_DOMAIN'=${TP_DOMAIN}\\n\
'TP_THEME'=${TP_THEME}\\n"
# Set default
if [[ -z ${TP_DOMAIN} ]]; then
echo 'No domain set, defaulting to gilbn.github.io'
TP_DOMAIN='gilbn.github.io'
fi
if [[ -z ${TP_THEME} ]]; then
echo 'No theme set, defaulting to organizr-dark'
TP_THEME='organizr-dark'
fi
# Adding stylesheets
if ! grep -q "${TP_DOMAIN}" /app/bazarr/views/_main.html; then
echo '---------------------------'
echo '| Adding the stylesheet |'
echo '---------------------------'
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/theme.park\/CSS\/themes\/bazarr\/${TP_THEME}.css'><\/head> /g" /app/bazarr/views/_main.html
printf 'Stylesheet set to %s\n' "${TP_THEME}
"
fi

4
lidarr/Dockerfile

@ -0,0 +1,4 @@
FROM scratch
# copy local files
COPY root/ /

31
lidarr/root/etc/cont-init.d/98-themepark

@ -0,0 +1,31 @@
#!/usr/bin/with-contenv bash
echo '---------------------------'
echo '| Lidarr theme.park Mod |'
echo '---------------------------'
# Display variables for troubleshooting
echo -e "Variables set:\\n\
'TP_DOMAIN'=${TP_DOMAIN}\\n\
'TP_THEME'=${TP_THEME}\\n"
# Set default
if [[ -z ${TP_DOMAIN} ]]; then
echo 'No domain set, defaulting to gilbn.github.io'
TP_DOMAIN='gilbn.github.io'
fi
if [[ -z ${TP_THEME} ]]; then
echo 'No theme set, defaulting to organizr-dark'
TP_THEME='organizr-dark'
fi
# Adding stylesheets
if ! grep -q "${TP_DOMAIN}" /app/lidarr/bin/UI/index.html; then
echo '---------------------------'
echo '| Adding the stylesheet |'
echo '---------------------------'
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/theme.park\/CSS\/themes\/lidarr\/${TP_THEME}.css'><\/head> /g" /app/lidarr/bin/UI/index.html
printf 'Stylesheet set to %s\n' "${TP_THEME}
"
fi

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

@ -26,5 +26,6 @@ if ! grep -q "${TP_DOMAIN}" /app/radarr/bin/UI/index.html; then
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
printf 'Stylesheet set to %s\n' "${TP_THEME}"
printf 'Stylesheet set to %s\n' "${TP_THEME}
"
fi

4
readarr/Dockerfile

@ -0,0 +1,4 @@
FROM scratch
# copy local files
COPY root/ /

31
readarr/root/etc/cont-init.d/98-themepark

@ -0,0 +1,31 @@
#!/usr/bin/with-contenv bash
echo '---------------------------'
echo '| Readarr theme.park Mod |'
echo '---------------------------'
# Display variables for troubleshooting
echo -e "Variables set:\\n\
'TP_DOMAIN'=${TP_DOMAIN}\\n\
'TP_THEME'=${TP_THEME}\\n"
# Set default
if [[ -z ${TP_DOMAIN} ]]; then
echo 'No domain set, defaulting to gilbn.github.io'
TP_DOMAIN='gilbn.github.io'
fi
if [[ -z ${TP_THEME} ]]; then
echo 'No theme set, defaulting to organizr-dark'
TP_THEME='organizr-dark'
fi
# Adding stylesheets
if ! grep -q "${TP_DOMAIN}" /app/bin/UI/index.html; then
echo '---------------------------'
echo '| Adding the stylesheet |'
echo '---------------------------'
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/theme.park\/CSS\/themes\/readarr\/${TP_THEME}.css'><\/head> /g" /app/bin/UI/index.html
printf 'Stylesheet set to %s\n' "${TP_THEME}
"
fi

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

@ -26,5 +26,6 @@ if ! grep -q "${TP_DOMAIN}" /app/sonarr/bin/UI/index.html; then
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
printf 'Stylesheet set to %s\n' "${TP_THEME}"
printf 'Stylesheet set to %s\n' "${TP_THEME}
"
fi
Loading…
Cancel
Save