Browse Source

deluge and jackett fix

pull/149/head
gilbN 5 years ago
parent
commit
10bd28e69b
  1. 6
      deluge/root/etc/cont-init.d/98-themepark
  2. 6
      jackett/root/etc/cont-init.d/98-themepark

6
deluge/root/etc/cont-init.d/98-themepark

@ -1,7 +1,7 @@
#!/usr/bin/with-contenv bash
echo '---------------------------'
echo '| Jackett theme.park Mod |'
echo '| Deluge theme.park Mod |'
echo '---------------------------'
# Display variables for troubleshooting
@ -21,11 +21,11 @@ if [[ -z ${TP_THEME} ]]; then
fi
# Adding stylesheets
if ! grep -q "${TP_DOMAIN}" /app/Jackett/Content/index.html; then
if ! grep -q "${TP_DOMAIN}" /usr/lib/python3/dist-packages/deluge/ui/web/index.html; then
echo '---------------------------'
echo '| Adding the stylesheet |'
echo '---------------------------'
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/theme.park\/CSS\/themes\/jackett\/${TP_THEME}.css'><\/head> /g" /app/Jackett/Content/index.html
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/theme.park\/CSS\/themes\/deluge\/${TP_THEME}.css'><\/head> /g" /usr/lib/python3/dist-packages/deluge/ui/web/index.html
printf 'Stylesheet set to %s\n' "${TP_THEME}
"
fi

6
jackett/root/etc/cont-init.d/98-themepark

@ -1,7 +1,7 @@
#!/usr/bin/with-contenv bash
echo '---------------------------'
echo '| Deluge theme.park Mod |'
echo '| Jackett theme.park Mod |'
echo '---------------------------'
# Display variables for troubleshooting
@ -21,11 +21,11 @@ if [[ -z ${TP_THEME} ]]; then
fi
# Adding stylesheets
if ! grep -q "${TP_DOMAIN}" /usr/lib/python3/dist-packages/deluge/ui/web/index.html; then
if ! grep -q "${TP_DOMAIN}" /app/Jackett/Content/index.html; then
echo '---------------------------'
echo '| Adding the stylesheet |'
echo '---------------------------'
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/theme.park\/CSS\/themes\/deluge\/${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}\/theme.park\/CSS\/themes\/jackett\/${TP_THEME}.css'><\/head> /g" /app/Jackett/Content/index.html
printf 'Stylesheet set to %s\n' "${TP_THEME}
"
fi
Loading…
Cancel
Save