From 853aa5b1e6ac03ee52ed4e87db2e6c6c3ef9a72a Mon Sep 17 00:00:00 2001 From: Marius <24592972+gilbN@users.noreply.github.com> Date: Sat, 24 Apr 2021 23:06:45 +0200 Subject: [PATCH] bazarr 4k logo docker-mod addon --- bazarr/root/etc/cont-init.d/98-themepark | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bazarr/root/etc/cont-init.d/98-themepark b/bazarr/root/etc/cont-init.d/98-themepark index 3c956d99..aa1f0ede 100644 --- a/bazarr/root/etc/cont-init.d/98-themepark +++ b/bazarr/root/etc/cont-init.d/98-themepark @@ -7,6 +7,7 @@ echo '---------------------------' # 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/bazarr/bin/frontend/build/index.html' @@ -33,4 +34,8 @@ if ! grep -q "${TP_DOMAIN}" "${APP_FILEPATH}"; then echo '---------------------------' 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}" + printf 'Added custom addon: %s\n\n' "${TP_ADDON}" + fi fi