|
|
@ -44,17 +44,17 @@ fi |
|
|
|
|
|
|
|
# Adding stylesheets |
|
|
|
if ! grep -q "${TP_DOMAIN}" /themepark/public/index.html; then |
|
|
|
echo '----------------------------------------------' |
|
|
|
echo '| Adding the stylesheet to public index.html |' |
|
|
|
echo '----------------------------------------------' |
|
|
|
echo '---------------------------------------------------------' |
|
|
|
echo '| Adding the stylesheet to /themepark/public/index.html |' |
|
|
|
echo '---------------------------------------------------------' |
|
|
|
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/theme.park\/CSS\/themes\/qbittorrent\/${TP_THEME}.css'><\/head> /g" /themepark/public/index.html |
|
|
|
printf 'Stylesheet set to %s on public index.html\n' "${TP_THEME}" |
|
|
|
fi |
|
|
|
|
|
|
|
if ! grep -q "${TP_DOMAIN}" /themepark/private/index.html; then |
|
|
|
echo '-----------------------------------------------' |
|
|
|
echo '| Adding the stylesheet to private index.html |' |
|
|
|
echo '-----------------------------------------------' |
|
|
|
echo '----------------------------------------------------------' |
|
|
|
echo '| Adding the stylesheet to /themepark/private/index.html |' |
|
|
|
echo '----------------------------------------------------------' |
|
|
|
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/theme.park\/CSS\/themes\/qbittorrent\/${TP_THEME}.css'><\/head> /g" /themepark/private/index.html |
|
|
|
printf 'Stylesheet set to %s on private index.html\n' "${TP_THEME}" |
|
|
|
fi |
|
|
|