21 changed files with 153 additions and 153 deletions
@ -1,6 +1,6 @@ |
|||||
FROM scratch |
FROM scratch |
||||
|
|
||||
LABEL maintainer="GilbN" |
LABEL maintainer="GilbN" |
||||
LABEL app="Calibre-Web" |
LABEL app="Calibre-Web" |
||||
#copy local files. |
#copy local files. |
||||
COPY root/ / |
COPY root/ / |
||||
|
@ -1,45 +1,45 @@ |
|||||
#!/usr/bin/with-contenv bash |
#!/usr/bin/with-contenv bash |
||||
|
|
||||
echo '--------------------------------' |
echo '--------------------------------' |
||||
echo '| Calibre-web theme.park Mod |' |
echo '| Calibre-web theme.park Mod |' |
||||
echo '--------------------------------' |
echo '--------------------------------' |
||||
|
|
||||
# Display variables for troubleshooting |
# Display variables for troubleshooting |
||||
echo -e "Variables set:\\n\ |
echo -e "Variables set:\\n\ |
||||
'TP_DOMAIN'=${TP_DOMAIN}\\n\ |
'TP_DOMAIN'=${TP_DOMAIN}\\n\ |
||||
'TP_COMMUNITY_THEME'=${TP_COMMUNITY_THEME}\\n\ |
'TP_COMMUNITY_THEME'=${TP_COMMUNITY_THEME}\\n\ |
||||
'TP_THEME'=${TP_THEME}\\n" |
'TP_THEME'=${TP_THEME}\\n" |
||||
|
|
||||
# Set default |
# Set default |
||||
if [[ -z ${TP_DOMAIN} ]]; then |
if [[ -z ${TP_DOMAIN} ]]; then |
||||
echo 'No domain set, defaulting to theme-park.dev' |
echo 'No domain set, defaulting to theme-park.dev' |
||||
TP_DOMAIN='theme-park.dev' |
TP_DOMAIN='theme-park.dev' |
||||
fi |
fi |
||||
|
|
||||
THEME_TYPE='theme-options' |
THEME_TYPE='theme-options' |
||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then |
if [ "${TP_COMMUNITY_THEME}" = true ]; then |
||||
THEME_TYPE='community-theme-options' |
THEME_TYPE='community-theme-options' |
||||
fi |
fi |
||||
|
|
||||
case ${TP_DOMAIN} in |
case ${TP_DOMAIN} in |
||||
*"github.io"*) |
*"github.io"*) |
||||
echo "Switching to github.io URL style" |
echo "Switching to github.io URL style" |
||||
TP_DOMAIN="${TP_DOMAIN}\/theme.park" |
TP_DOMAIN="${TP_DOMAIN}\/theme.park" |
||||
;; |
;; |
||||
esac |
esac |
||||
|
|
||||
if [[ -z ${TP_THEME} ]]; then |
if [[ -z ${TP_THEME} ]]; then |
||||
echo 'No theme set, defaulting to organizr' |
echo 'No theme set, defaulting to organizr' |
||||
TP_THEME='organizr' |
TP_THEME='organizr' |
||||
fi |
fi |
||||
|
|
||||
# Adding stylesheets |
# Adding stylesheets |
||||
if ! grep -q "${TP_DOMAIN}/css/base" /app/calibre-web/cps/templates/layout.html; then |
if ! grep -q "${TP_DOMAIN}/css/base" /app/calibre-web/cps/templates/layout.html; then |
||||
echo '---------------------------' |
echo '---------------------------' |
||||
echo '| Adding the stylesheet |' |
echo '| Adding the stylesheet |' |
||||
echo '---------------------------' |
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\/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 |
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} |
printf 'Stylesheet set to %s\n' "${TP_THEME} |
||||
" |
" |
||||
fi |
fi |
||||
|
@ -1,6 +1,6 @@ |
|||||
FROM scratch |
FROM scratch |
||||
|
|
||||
LABEL maintainer="GilbN" |
LABEL maintainer="GilbN" |
||||
LABEL app="Jellyfin" |
LABEL app="Jellyfin" |
||||
#copy local files. |
#copy local files. |
||||
COPY root/ / |
COPY root/ / |
@ -1,6 +1,6 @@ |
|||||
FROM scratch |
FROM scratch |
||||
|
|
||||
LABEL maintainer="GilbN" |
LABEL maintainer="GilbN" |
||||
LABEL app="Lazylibrarian" |
LABEL app="Lazylibrarian" |
||||
#copy local files. |
#copy local files. |
||||
COPY root/ / |
COPY root/ / |
@ -1,6 +1,6 @@ |
|||||
FROM scratch |
FROM scratch |
||||
|
|
||||
LABEL maintainer="GilbN" |
LABEL maintainer="GilbN" |
||||
LABEL app="Librespeed" |
LABEL app="Librespeed" |
||||
#copy local files. |
#copy local files. |
||||
COPY root/ / |
COPY root/ / |
@ -1,6 +1,6 @@ |
|||||
FROM scratch |
FROM scratch |
||||
|
|
||||
LABEL maintainer="GilbN" |
LABEL maintainer="GilbN" |
||||
LABEL app="Lidarr" |
LABEL app="Lidarr" |
||||
#copy local files. |
#copy local files. |
||||
COPY root/ / |
COPY root/ / |
@ -1,7 +1,7 @@ |
|||||
FROM scratch |
FROM scratch |
||||
|
|
||||
|
|
||||
LABEL maintainer="GilbN" |
LABEL maintainer="GilbN" |
||||
LABEL app="Mylar3" |
LABEL app="Mylar3" |
||||
#copy local files. |
#copy local files. |
||||
COPY root/ / |
COPY root/ / |
@ -1,6 +1,6 @@ |
|||||
FROM scratch |
FROM scratch |
||||
|
|
||||
LABEL maintainer="GilbN" |
LABEL maintainer="GilbN" |
||||
LABEL app="NZBGet" |
LABEL app="NZBGet" |
||||
#copy local files. |
#copy local files. |
||||
COPY root/ / |
COPY root/ / |
@ -1,6 +1,6 @@ |
|||||
FROM scratch |
FROM scratch |
||||
|
|
||||
LABEL maintainer="GilbN" |
LABEL maintainer="GilbN" |
||||
LABEL app="Plex" |
LABEL app="Plex" |
||||
#copy local files. |
#copy local files. |
||||
COPY root/ / |
COPY root/ / |
||||
|
@ -1,7 +1,7 @@ |
|||||
FROM scratch |
FROM scratch |
||||
|
|
||||
LABEL maintainer="GilbN" |
LABEL maintainer="GilbN" |
||||
LABEL app="Prowlarr" |
LABEL app="Prowlarr" |
||||
|
|
||||
#copy local files. |
#copy local files. |
||||
COPY root/ / |
COPY root/ / |
@ -1,7 +1,7 @@ |
|||||
FROM scratch |
FROM scratch |
||||
|
|
||||
|
|
||||
LABEL maintainer="GilbN" |
LABEL maintainer="GilbN" |
||||
LABEL app="Qbittorrent" |
LABEL app="Qbittorrent" |
||||
#copy local files. |
#copy local files. |
||||
COPY root/ / |
COPY root/ / |
@ -1,7 +1,7 @@ |
|||||
FROM scratch |
FROM scratch |
||||
|
|
||||
LABEL maintainer="GilbN" |
LABEL maintainer="GilbN" |
||||
LABEL app="Radarr" |
LABEL app="Radarr" |
||||
|
|
||||
#copy local files. |
#copy local files. |
||||
COPY root/ / |
COPY root/ / |
@ -1,6 +1,6 @@ |
|||||
FROM scratch |
FROM scratch |
||||
|
|
||||
LABEL maintainer="GilbN" |
LABEL maintainer="GilbN" |
||||
LABEL app="Readarr" |
LABEL app="Readarr" |
||||
#copy local files. |
#copy local files. |
||||
COPY root/ / |
COPY root/ / |
@ -1,6 +1,6 @@ |
|||||
FROM scratch |
FROM scratch |
||||
|
|
||||
LABEL maintainer="GilbN" |
LABEL maintainer="GilbN" |
||||
LABEL app="Rutorrent" |
LABEL app="Rutorrent" |
||||
#copy local files. |
#copy local files. |
||||
COPY root/ / |
COPY root/ / |
@ -1,6 +1,6 @@ |
|||||
FROM scratch |
FROM scratch |
||||
|
|
||||
LABEL maintainer="GilbN" |
LABEL maintainer="GilbN" |
||||
LABEL app="SABnzbd" |
LABEL app="SABnzbd" |
||||
#copy local files. |
#copy local files. |
||||
COPY root/ / |
COPY root/ / |
@ -1,7 +1,7 @@ |
|||||
FROM scratch |
FROM scratch |
||||
|
|
||||
LABEL maintainer="GilbN" |
LABEL maintainer="GilbN" |
||||
LABEL app="Sonarr" |
LABEL app="Sonarr" |
||||
|
|
||||
#copy local files. |
#copy local files. |
||||
COPY root/ / |
COPY root/ / |
@ -1,6 +1,6 @@ |
|||||
FROM scratch |
FROM scratch |
||||
|
|
||||
LABEL maintainer="GilbN" |
LABEL maintainer="GilbN" |
||||
LABEL app="Synclounge" |
LABEL app="Synclounge" |
||||
#copy local files. |
#copy local files. |
||||
COPY root/ / |
COPY root/ / |
@ -1,6 +1,6 @@ |
|||||
FROM scratch |
FROM scratch |
||||
|
|
||||
LABEL maintainer="GilbN" |
LABEL maintainer="GilbN" |
||||
LABEL app="Tautulli" |
LABEL app="Tautulli" |
||||
#copy local files. |
#copy local files. |
||||
COPY root/ / |
COPY root/ / |
@ -1,6 +1,6 @@ |
|||||
FROM scratch |
FROM scratch |
||||
|
|
||||
LABEL maintainer="GilbN" |
LABEL maintainer="GilbN" |
||||
LABEL app="The Lounge" |
LABEL app="The Lounge" |
||||
#copy local files. |
#copy local files. |
||||
COPY root/ / |
COPY root/ / |
@ -1,6 +1,6 @@ |
|||||
FROM scratch |
FROM scratch |
||||
|
|
||||
LABEL maintainer="GilbN" |
LABEL maintainer="GilbN" |
||||
LABEL app="Transmission" |
LABEL app="Transmission" |
||||
#copy local files. |
#copy local files. |
||||
COPY root/ / |
COPY root/ / |
@ -1,7 +1,7 @@ |
|||||
FROM scratch |
FROM scratch |
||||
|
|
||||
|
|
||||
LABEL maintainer="GilbN" |
LABEL maintainer="GilbN" |
||||
LABEL app="VueTorrent" |
LABEL app="VueTorrent" |
||||
#copy local files. |
#copy local files. |
||||
COPY root/ / |
COPY root/ / |
Loading…
Reference in new issue