From 7b187474a41f93a6976358228914b2e655b36b34 Mon Sep 17 00:00:00 2001 From: gilbn Date: Sun, 22 Aug 2021 12:46:09 +0200 Subject: [PATCH] multiple addons for plex --- docker-mods/plex/root/etc/cont-init.d/98-themepark | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docker-mods/plex/root/etc/cont-init.d/98-themepark b/docker-mods/plex/root/etc/cont-init.d/98-themepark index 33ade7a8..81e36fd8 100644 --- a/docker-mods/plex/root/etc/cont-init.d/98-themepark +++ b/docker-mods/plex/root/etc/cont-init.d/98-themepark @@ -42,7 +42,9 @@ if ! grep -q "${TP_DOMAIN}" "${APP_FILEPATH}"; then sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}"/usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html printf 'Stylesheet set to %s\n' "${TP_THEME}" if [[ -n ${TP_ADDON} ]]; then - sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}"/usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html - printf 'Added custom addon: %s\n\n' "${TP_ADDON}" + for addon in $(echo "$TP_ADDON" | tr "|" " "); do + sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}"/usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html + printf 'Added custom addon: %s\n\n' "${addon}" + done fi fi \ No newline at end of file