Browse Source

replace theme.css with tp imports instead of sed

pull/315/head
GilbN 4 years ago
parent
commit
1f971ab463
  1. 11
      docker-mods/emby/root/etc/cont-init.d/98-themepark

11
docker-mods/emby/root/etc/cont-init.d/98-themepark

@ -34,12 +34,5 @@ if [[ -z ${TP_THEME} ]]; then
fi
# Adding stylesheets
if ! grep -q "${TP_DOMAIN}/css/base" /app/emby/dashboard-ui/index.html; then
echo '---------------------------'
echo '| Adding the stylesheet |'
echo '---------------------------'
sed -i "s/<\/body>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/base\/emby\/emby-base.css'><\/body> /g" /app/emby/dashboard-ui/index.html
sed -i "s/<\/body>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/body> /g" /app/emby/dashboard-ui/index.html
printf 'Stylesheet set to %s\n' "${TP_THEME}
"
fi
printf '%s\n' "@import url('https://${TP_DOMAIN}/css/${THEME_TYPE}/${TP_THEME}.css');" "@import url('https://${TP_DOMAIN}/css/base/emby/emby-base.css');" > /app/emby/dashboard-ui/modules/themes/light/theme.css
printf 'Stylesheet set to %s\n' "${TP_THEME}"

Loading…
Cancel
Save