mirror of
https://github.com/gilbN/theme.park.git
synced 2024-08-17 15:39:36 +02:00
Fix new index.html path
Theme was broken, now it is fixed :)
This commit is contained in:
parent
e22d4e12c8
commit
0ebee551ca
@ -34,12 +34,13 @@ if [[ -z ${TP_THEME} ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Adding stylesheets
|
# 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 '---------------------------'
|
||||||
echo '| Adding the stylesheet |'
|
echo '| Adding the stylesheet |'
|
||||||
echo '---------------------------'
|
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\/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" /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" "$INDEX_HTML"
|
||||||
printf 'Stylesheet set to %s\n' "${TP_THEME}
|
printf 'Stylesheet set to %s\n' "${TP_THEME}
|
||||||
"
|
"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user