1
0
mirror of https://github.com/gilbN/theme.park.git synced 2024-07-14 16:55:11 +02:00

Fix new index.html path

Theme was broken, now it is fixed :)
This commit is contained in:
Thomas Anderson 2022-03-01 11:39:40 -05:00 committed by GitHub
parent e22d4e12c8
commit 0ebee551ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
fi