From 9c9afc2dc409131bd825fc02ade318788cbc6566 Mon Sep 17 00:00:00 2001 From: Marius <24592972+gilbN@users.noreply.github.com> Date: Wed, 13 Jan 2021 00:58:19 +0100 Subject: [PATCH] added addon variable --- README.md | 1 + radarr/root/etc/cont-init.d/98-themepark | 7 +++++-- sonarr/root/etc/cont-init.d/98-themepark | 7 +++++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 622fcd84..890bc484 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ These are the **default** values for all envs. So if you want to use the `organi | `DOCKER_MODS` | `gilbn/theme.park:` | Replace \ | | `TP_DOMAIN` | `gilbn.github.io` | Defaults to the example. | | `TP_THEME` | `organizr-dark` | Defaults to the example. | +| `TP_ADDON` | `radarr-4k-logo` | See wiki for more info on addons | diff --git a/radarr/root/etc/cont-init.d/98-themepark b/radarr/root/etc/cont-init.d/98-themepark index d8c9646d..6a62b6b7 100644 --- a/radarr/root/etc/cont-init.d/98-themepark +++ b/radarr/root/etc/cont-init.d/98-themepark @@ -26,6 +26,9 @@ if ! grep -q "${TP_DOMAIN}" /app/radarr/bin/UI/index.html; then echo '| Adding the stylesheet |' echo '---------------------------' sed -i "s/<\/head>/<\/head> /g" /app/radarr/bin/UI/index.html - printf 'Stylesheet set to %s\n' "${TP_THEME} - " + printf 'Stylesheet set to %s\n' "${TP_THEME}" + if [[ -n ${TP_ADDON} ]]; then + sed -i "s/<\/head>/<\/head> /g" /app/radarr/bin/UI/index.html + printf 'Added custom addon: %s\n\n' "${TP_ADDON}" + fi 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 8c3877e9..153f5b68 100644 --- a/sonarr/root/etc/cont-init.d/98-themepark +++ b/sonarr/root/etc/cont-init.d/98-themepark @@ -26,6 +26,9 @@ if ! grep -q "${TP_DOMAIN}" /app/sonarr/bin/UI/index.html; then echo '| Adding the stylesheet |' echo '---------------------------' sed -i "s/<\/head>/<\/head> /g" /app/sonarr/bin/UI/index.html - printf 'Stylesheet set to %s\n' "${TP_THEME} - " + printf 'Stylesheet set to %s\n' "${TP_THEME}" + if [[ -n ${TP_ADDON} ]]; then + sed -i "s/<\/head>/<\/head> /g" /app/sonarr/bin/UI/index.html + printf 'Added custom addon: %s\n\n' "${TP_ADDON}" + fi fi \ No newline at end of file