1
0
mirror of https://github.com/gilbN/theme.park.git synced 2024-07-07 04:19:17 +02:00
This commit is contained in:
GilbN 2022-06-22 21:25:01 +02:00
parent 4120d823f9
commit 577fa8efb4

View File

@ -90,9 +90,9 @@ if [[ ! -d /themepark ]]; then
fi
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
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
@ -104,10 +104,10 @@ if ! grep -q "${TP_DOMAIN}/css/base" /themepark/public/index.html; then
fi
if ! grep -q "${TP_DOMAIN}/css/base" /themepark/private/index.html; then
find ./themepark/private -type f -iname *.html | while read fname
do
sed_file $fname
done
find /themepark/private -type f -iname *.html | while read fname
do
sed_file $fname
done
fi
if ! grep -q "WebUI\\\RootFolder" "${APP_FILEPATH}"; then