mirror of
https://github.com/gilbN/theme.park.git
synced 2024-10-03 22:17:08 +02:00
LF > CRLF
This commit is contained in:
parent
33acdc0f44
commit
27d14dc79e
@ -1,6 +1,6 @@
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="Calibre-Web"
|
||||
#copy local files.
|
||||
COPY root/ /
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="Calibre-Web"
|
||||
#copy local files.
|
||||
COPY root/ /
|
||||
|
@ -1,45 +1,45 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
echo '--------------------------------'
|
||||
echo '| Calibre-web theme.park Mod |'
|
||||
echo '--------------------------------'
|
||||
|
||||
# Display variables for troubleshooting
|
||||
echo -e "Variables set:\\n\
|
||||
'TP_DOMAIN'=${TP_DOMAIN}\\n\
|
||||
'TP_COMMUNITY_THEME'=${TP_COMMUNITY_THEME}\\n\
|
||||
'TP_THEME'=${TP_THEME}\\n"
|
||||
|
||||
# Set default
|
||||
if [[ -z ${TP_DOMAIN} ]]; then
|
||||
echo 'No domain set, defaulting to theme-park.dev'
|
||||
TP_DOMAIN='theme-park.dev'
|
||||
fi
|
||||
|
||||
THEME_TYPE='theme-options'
|
||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||
THEME_TYPE='community-theme-options'
|
||||
fi
|
||||
|
||||
case ${TP_DOMAIN} in
|
||||
*"github.io"*)
|
||||
echo "Switching to github.io URL style"
|
||||
TP_DOMAIN="${TP_DOMAIN}\/theme.park"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ -z ${TP_THEME} ]]; then
|
||||
echo 'No theme set, defaulting to organizr'
|
||||
TP_THEME='organizr'
|
||||
fi
|
||||
|
||||
# Adding stylesheets
|
||||
if ! grep -q "${TP_DOMAIN}/css/base" /app/calibre-web/cps/templates/layout.html; then
|
||||
echo '---------------------------'
|
||||
echo '| Adding the stylesheet |'
|
||||
echo '---------------------------'
|
||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/base\/calibreweb\/calibreweb-base.css'><\/head> /g" /app/calibre-web/cps/templates/layout.html
|
||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" /app/calibre-web/cps/templates/layout.html
|
||||
printf 'Stylesheet set to %s\n' "${TP_THEME}
|
||||
"
|
||||
fi
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
echo '--------------------------------'
|
||||
echo '| Calibre-web theme.park Mod |'
|
||||
echo '--------------------------------'
|
||||
|
||||
# Display variables for troubleshooting
|
||||
echo -e "Variables set:\\n\
|
||||
'TP_DOMAIN'=${TP_DOMAIN}\\n\
|
||||
'TP_COMMUNITY_THEME'=${TP_COMMUNITY_THEME}\\n\
|
||||
'TP_THEME'=${TP_THEME}\\n"
|
||||
|
||||
# Set default
|
||||
if [[ -z ${TP_DOMAIN} ]]; then
|
||||
echo 'No domain set, defaulting to theme-park.dev'
|
||||
TP_DOMAIN='theme-park.dev'
|
||||
fi
|
||||
|
||||
THEME_TYPE='theme-options'
|
||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||
THEME_TYPE='community-theme-options'
|
||||
fi
|
||||
|
||||
case ${TP_DOMAIN} in
|
||||
*"github.io"*)
|
||||
echo "Switching to github.io URL style"
|
||||
TP_DOMAIN="${TP_DOMAIN}\/theme.park"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ -z ${TP_THEME} ]]; then
|
||||
echo 'No theme set, defaulting to organizr'
|
||||
TP_THEME='organizr'
|
||||
fi
|
||||
|
||||
# Adding stylesheets
|
||||
if ! grep -q "${TP_DOMAIN}/css/base" /app/calibre-web/cps/templates/layout.html; then
|
||||
echo '---------------------------'
|
||||
echo '| Adding the stylesheet |'
|
||||
echo '---------------------------'
|
||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/base\/calibreweb\/calibreweb-base.css'><\/head> /g" /app/calibre-web/cps/templates/layout.html
|
||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" /app/calibre-web/cps/templates/layout.html
|
||||
printf 'Stylesheet set to %s\n' "${TP_THEME}
|
||||
"
|
||||
fi
|
||||
|
@ -1,6 +1,6 @@
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="Jellyfin"
|
||||
#copy local files.
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="Jellyfin"
|
||||
#copy local files.
|
||||
COPY root/ /
|
@ -1,6 +1,6 @@
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="Lazylibrarian"
|
||||
#copy local files.
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="Lazylibrarian"
|
||||
#copy local files.
|
||||
COPY root/ /
|
@ -1,6 +1,6 @@
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="Librespeed"
|
||||
#copy local files.
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="Librespeed"
|
||||
#copy local files.
|
||||
COPY root/ /
|
@ -1,6 +1,6 @@
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="Lidarr"
|
||||
#copy local files.
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="Lidarr"
|
||||
#copy local files.
|
||||
COPY root/ /
|
@ -1,7 +1,7 @@
|
||||
FROM scratch
|
||||
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="Mylar3"
|
||||
#copy local files.
|
||||
FROM scratch
|
||||
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="Mylar3"
|
||||
#copy local files.
|
||||
COPY root/ /
|
@ -1,6 +1,6 @@
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="NZBGet"
|
||||
#copy local files.
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="NZBGet"
|
||||
#copy local files.
|
||||
COPY root/ /
|
@ -1,6 +1,6 @@
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="Plex"
|
||||
#copy local files.
|
||||
COPY root/ /
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="Plex"
|
||||
#copy local files.
|
||||
COPY root/ /
|
||||
|
@ -1,7 +1,7 @@
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="Prowlarr"
|
||||
|
||||
#copy local files.
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="Prowlarr"
|
||||
|
||||
#copy local files.
|
||||
COPY root/ /
|
@ -1,7 +1,7 @@
|
||||
FROM scratch
|
||||
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="Qbittorrent"
|
||||
#copy local files.
|
||||
FROM scratch
|
||||
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="Qbittorrent"
|
||||
#copy local files.
|
||||
COPY root/ /
|
@ -1,7 +1,7 @@
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="Radarr"
|
||||
|
||||
#copy local files.
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="Radarr"
|
||||
|
||||
#copy local files.
|
||||
COPY root/ /
|
@ -1,6 +1,6 @@
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="Readarr"
|
||||
#copy local files.
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="Readarr"
|
||||
#copy local files.
|
||||
COPY root/ /
|
@ -1,6 +1,6 @@
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="Rutorrent"
|
||||
#copy local files.
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="Rutorrent"
|
||||
#copy local files.
|
||||
COPY root/ /
|
@ -1,6 +1,6 @@
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="SABnzbd"
|
||||
#copy local files.
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="SABnzbd"
|
||||
#copy local files.
|
||||
COPY root/ /
|
@ -1,7 +1,7 @@
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="Sonarr"
|
||||
|
||||
#copy local files.
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="Sonarr"
|
||||
|
||||
#copy local files.
|
||||
COPY root/ /
|
@ -1,6 +1,6 @@
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="Synclounge"
|
||||
#copy local files.
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="Synclounge"
|
||||
#copy local files.
|
||||
COPY root/ /
|
@ -1,6 +1,6 @@
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="Tautulli"
|
||||
#copy local files.
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="Tautulli"
|
||||
#copy local files.
|
||||
COPY root/ /
|
@ -1,6 +1,6 @@
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="The Lounge"
|
||||
#copy local files.
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="The Lounge"
|
||||
#copy local files.
|
||||
COPY root/ /
|
@ -1,6 +1,6 @@
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="Transmission"
|
||||
#copy local files.
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="Transmission"
|
||||
#copy local files.
|
||||
COPY root/ /
|
@ -1,7 +1,7 @@
|
||||
FROM scratch
|
||||
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="VueTorrent"
|
||||
#copy local files.
|
||||
FROM scratch
|
||||
|
||||
|
||||
LABEL maintainer="GilbN"
|
||||
LABEL app="VueTorrent"
|
||||
#copy local files.
|
||||
COPY root/ /
|
Loading…
Reference in New Issue
Block a user