mirror of
https://github.com/gilbN/theme.park.git
synced 2024-08-17 07:29:37 +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
|
||||
|
||||
# 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
|
||||
|
Loading…
Reference in New Issue
Block a user