Browse Source

Fix new index.html path

Theme was broken, now it is fixed :)
pull/326/head
Thomas Anderson 3 years ago
committed by GitHub
parent
commit
0ebee551ca
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      docker-mods/deluge/root/etc/cont-init.d/98-themepark

7
docker-mods/deluge/root/etc/cont-init.d/98-themepark

@ -34,12 +34,13 @@ if [[ -z ${TP_THEME} ]]; then
fi
# Adding stylesheets
if ! grep -q "${TP_DOMAIN}/css/base" /usr/lib/python3/dist-packages/deluge/ui/web/index.html; then
INDEX_HTML='/usr/lib/python3.10/site-packages/deluge/ui/web/index.html'
if ! grep -q "${TP_DOMAIN}/css/base" "$INDEX_HTML"; then
echo '---------------------------'
echo '| Adding the stylesheet |'
echo '---------------------------'
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/base\/deluge\/deluge-base.css'><\/head> /g" /usr/lib/python3/dist-packages/deluge/ui/web/index.html
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" /usr/lib/python3/dist-packages/deluge/ui/web/index.html
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/base\/deluge\/deluge-base.css'><\/head> /g" "$INDEX_HTML"
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "$INDEX_HTML"
printf 'Stylesheet set to %s\n' "${TP_THEME}
"
fi
Loading…
Cancel
Save