mirror of
https://github.com/gilbN/theme.park.git
synced 2024-08-17 15:39:36 +02:00
replace theme.css with tp imports instead of sed
This commit is contained in:
parent
aad1e1b8e4
commit
1f971ab463
@ -34,12 +34,5 @@ if [[ -z ${TP_THEME} ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Adding stylesheets
|
# Adding stylesheets
|
||||||
if ! grep -q "${TP_DOMAIN}/css/base" /app/emby/dashboard-ui/index.html; then
|
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
|
||||||
echo '---------------------------'
|
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
||||||
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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user