mirror of
https://github.com/gilbN/theme.park.git
synced 2024-09-11 19:32:24 +02:00
fixes #387
This commit is contained in:
parent
4120d823f9
commit
577fa8efb4
@ -90,9 +90,9 @@ if [[ ! -d /themepark ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
sed_file(){
|
sed_file(){
|
||||||
sed -i "s/<\/body>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/qbittorrent\/qbittorrent-base.css'><\/body> /g" $1
|
sed -i "s/<\/body>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/qbittorrent\/qbittorrent-base.css'><\/body> /g" $1
|
||||||
sed -i "s/<\/body>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/body> /g" $1
|
sed -i "s/<\/body>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/body> /g" $1
|
||||||
printf 'Stylesheet set to %s on %s\n\n' "${TP_THEME}" "$1"
|
printf 'Stylesheet set to %s on %s\n\n' "${TP_THEME}" "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Adding stylesheets
|
# Adding stylesheets
|
||||||
@ -104,10 +104,10 @@ if ! grep -q "${TP_DOMAIN}/css/base" /themepark/public/index.html; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if ! grep -q "${TP_DOMAIN}/css/base" /themepark/private/index.html; then
|
if ! grep -q "${TP_DOMAIN}/css/base" /themepark/private/index.html; then
|
||||||
find ./themepark/private -type f -iname *.html | while read fname
|
find /themepark/private -type f -iname *.html | while read fname
|
||||||
do
|
do
|
||||||
sed_file $fname
|
sed_file $fname
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! grep -q "WebUI\\\RootFolder" "${APP_FILEPATH}"; then
|
if ! grep -q "WebUI\\\RootFolder" "${APP_FILEPATH}"; then
|
||||||
|
Loading…
Reference in New Issue
Block a user