mirror of
https://github.com/gilbN/theme.park.git
synced 2024-08-16 15:09:39 +02:00
Add new TP_SCHEME env to mods
This commit is contained in:
parent
47b2da2f01
commit
e7da9a27c2
@ -9,6 +9,7 @@ echo -e "Variables set:\\n\
|
|||||||
'TP_DOMAIN'=${TP_DOMAIN}\\n\
|
'TP_DOMAIN'=${TP_DOMAIN}\\n\
|
||||||
'TP_ADDON'=${TP_ADDON}\\n\
|
'TP_ADDON'=${TP_ADDON}\\n\
|
||||||
'TP_COMMUNITY_THEME'=${TP_COMMUNITY_THEME}\\n\
|
'TP_COMMUNITY_THEME'=${TP_COMMUNITY_THEME}\\n\
|
||||||
|
'TP_SCHEME'=${TP_SCHEME}\\n\
|
||||||
'TP_THEME'=${TP_THEME}\\n"
|
'TP_THEME'=${TP_THEME}\\n"
|
||||||
|
|
||||||
APP_FILEPATH='/app/bazarr/bin/frontend/build/index.html'
|
APP_FILEPATH='/app/bazarr/bin/frontend/build/index.html'
|
||||||
@ -22,6 +23,10 @@ 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
|
||||||
|
if [[ -z ${TP_SCHEME} ]]; then
|
||||||
|
echo 'No scheme set, defaulting to https'
|
||||||
|
TP_SCHEME='https'
|
||||||
|
fi
|
||||||
|
|
||||||
THEME_TYPE='theme-options'
|
THEME_TYPE='theme-options'
|
||||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||||
@ -45,12 +50,12 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; 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\/bazarr\/bazarr-base.css'><\/head> /g" "${APP_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/bazarr\/bazarr-base.css'><\/head> /g" "${APP_FILEPATH}"
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${APP_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${APP_FILEPATH}"
|
||||||
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
||||||
if [[ -n ${TP_ADDON} ]]; then
|
if [[ -n ${TP_ADDON} ]]; then
|
||||||
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/addons\/bazarr\/${addon}\/${addon}.css'><\/head> /g" "${APP_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/bazarr\/${addon}\/${addon}.css'><\/head> /g" "${APP_FILEPATH}"
|
||||||
printf 'Added custom addon: %s\n\n' "${addon}"
|
printf 'Added custom addon: %s\n\n' "${addon}"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
@ -8,6 +8,7 @@ echo '--------------------------------'
|
|||||||
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_SCHEME'=${TP_SCHEME}\\n\
|
||||||
'TP_THEME'=${TP_THEME}\\n"
|
'TP_THEME'=${TP_THEME}\\n"
|
||||||
|
|
||||||
# Set default
|
# Set default
|
||||||
@ -15,6 +16,10 @@ 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
|
||||||
|
if [[ -z ${TP_SCHEME} ]]; then
|
||||||
|
echo 'No scheme set, defaulting to https'
|
||||||
|
TP_SCHEME='https'
|
||||||
|
fi
|
||||||
|
|
||||||
THEME_TYPE='theme-options'
|
THEME_TYPE='theme-options'
|
||||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||||
@ -38,8 +43,8 @@ if ! grep -q "${TP_DOMAIN}/css/base" /app/calibre-web/cps/templates/layout.html;
|
|||||||
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='${TP_SCHEME}:\/\/${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='${TP_SCHEME}:\/\/${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
|
||||||
|
@ -8,6 +8,7 @@ echo '---------------------------'
|
|||||||
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_SCHEME'=${TP_SCHEME}\\n\
|
||||||
'TP_THEME'=${TP_THEME}\\n"
|
'TP_THEME'=${TP_THEME}\\n"
|
||||||
|
|
||||||
# Set default
|
# Set default
|
||||||
@ -15,6 +16,10 @@ 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
|
||||||
|
if [[ -z ${TP_SCHEME} ]]; then
|
||||||
|
echo 'No scheme set, defaulting to https'
|
||||||
|
TP_SCHEME='https'
|
||||||
|
fi
|
||||||
|
|
||||||
THEME_TYPE='theme-options'
|
THEME_TYPE='theme-options'
|
||||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||||
@ -39,8 +44,8 @@ if ! grep -q "${TP_DOMAIN}/css/base" ${DELUGE_INDEX_PATH}; 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\/deluge\/deluge-base.css'><\/head> /g" ${DELUGE_INDEX_PATH}
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/deluge\/deluge-base.css'><\/head> /g" ${DELUGE_INDEX_PATH}
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" ${DELUGE_INDEX_PATH}
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" ${DELUGE_INDEX_PATH}
|
||||||
printf 'Stylesheet set to %s\n' "${TP_THEME}
|
printf 'Stylesheet set to %s\n' "${TP_THEME}
|
||||||
"
|
"
|
||||||
fi
|
fi
|
||||||
|
@ -11,6 +11,7 @@ echo -e "Variables set:\\n\
|
|||||||
'APP_FILEPATH'=${APP_FILEPATH}\\n\
|
'APP_FILEPATH'=${APP_FILEPATH}\\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_SCHEME'=${TP_SCHEME}\\n\
|
||||||
'TP_THEME'=${TP_THEME}\\n"
|
'TP_THEME'=${TP_THEME}\\n"
|
||||||
|
|
||||||
# Set default
|
# Set default
|
||||||
@ -18,6 +19,10 @@ 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
|
||||||
|
if [[ -z ${TP_SCHEME} ]]; then
|
||||||
|
echo 'No scheme set, defaulting to https'
|
||||||
|
TP_SCHEME='https'
|
||||||
|
fi
|
||||||
|
|
||||||
THEME_TYPE='theme-options'
|
THEME_TYPE='theme-options'
|
||||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||||
@ -37,8 +42,8 @@ if [[ -z ${TP_THEME} ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
sed_file(){
|
sed_file(){
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/base\/duplicati\/duplicati-base.css'><\/head> /g" $1
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/duplicati\/duplicati-base.css'><\/head> /g" $1
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" $1
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /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"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,6 +8,7 @@ echo '-------------------------'
|
|||||||
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_SCHEME'=${TP_SCHEME}\\n\
|
||||||
'TP_THEME'=${TP_THEME}\\n"
|
'TP_THEME'=${TP_THEME}\\n"
|
||||||
|
|
||||||
# Set default
|
# Set default
|
||||||
@ -15,6 +16,10 @@ 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
|
||||||
|
if [[ -z ${TP_SCHEME} ]]; then
|
||||||
|
echo 'No scheme set, defaulting to https'
|
||||||
|
TP_SCHEME='https'
|
||||||
|
fi
|
||||||
|
|
||||||
THEME_TYPE='theme-options'
|
THEME_TYPE='theme-options'
|
||||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||||
@ -34,5 +39,5 @@ if [[ -z ${TP_THEME} ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Adding stylesheets
|
# Adding stylesheets
|
||||||
printf '%s\n' "@import url('https://${TP_DOMAIN}/css/${THEME_TYPE}/${TP_THEME}.css');" "@import url('https://${TP_DOMAIN}/css/base/emby/emby-base.css');" > /app/emby/dashboard-ui/modules/themes/light/theme.css
|
printf '%s\n' "@import url('${TP_SCHEME}://${TP_DOMAIN}/css/${THEME_TYPE}/${TP_THEME}.css');" "@import url('${TP_SCHEME}://${TP_DOMAIN}/css/base/emby/emby-base.css');" > /app/emby/dashboard-ui/modules/themes/light/theme.css
|
||||||
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
||||||
|
@ -8,6 +8,7 @@ echo '---------------------------'
|
|||||||
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_SCHEME'=${TP_SCHEME}\\n\
|
||||||
'TP_THEME'=${TP_THEME}\\n"
|
'TP_THEME'=${TP_THEME}\\n"
|
||||||
|
|
||||||
APP_FILEPATH='/app/Jackett/Content/index.html'
|
APP_FILEPATH='/app/Jackett/Content/index.html'
|
||||||
@ -21,6 +22,10 @@ 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
|
||||||
|
if [[ -z ${TP_SCHEME} ]]; then
|
||||||
|
echo 'No scheme set, defaulting to https'
|
||||||
|
TP_SCHEME='https'
|
||||||
|
fi
|
||||||
|
|
||||||
THEME_TYPE='theme-options'
|
THEME_TYPE='theme-options'
|
||||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||||
@ -44,8 +49,8 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; 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\/jackett\/jackett-base.css'><\/head> /g" "${APP_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/jackett\/jackett-base.css'><\/head> /g" "${APP_FILEPATH}"
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${APP_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${APP_FILEPATH}"
|
||||||
printf 'Stylesheet set to %s\n' "${TP_THEME}
|
printf 'Stylesheet set to %s\n' "${TP_THEME}
|
||||||
"
|
"
|
||||||
fi
|
fi
|
@ -8,6 +8,7 @@ echo '-----------------------------'
|
|||||||
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_SCHEME'=${TP_SCHEME}\\n\
|
||||||
'TP_THEME'=${TP_THEME}\\n"
|
'TP_THEME'=${TP_THEME}\\n"
|
||||||
|
|
||||||
# Set default
|
# Set default
|
||||||
@ -15,6 +16,10 @@ 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
|
||||||
|
if [[ -z ${TP_SCHEME} ]]; then
|
||||||
|
echo 'No scheme set, defaulting to https'
|
||||||
|
TP_SCHEME='https'
|
||||||
|
fi
|
||||||
|
|
||||||
THEME_TYPE='theme-options'
|
THEME_TYPE='theme-options'
|
||||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||||
@ -38,8 +43,8 @@ if ! grep -q "${TP_DOMAIN}/css/base" /usr/share/jellyfin/web/index.html; then
|
|||||||
echo '---------------------------'
|
echo '---------------------------'
|
||||||
echo '| Adding the stylesheet |'
|
echo '| Adding the stylesheet |'
|
||||||
echo '---------------------------'
|
echo '---------------------------'
|
||||||
sed -i "s/<\/body>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/base\/jellyfin\/jellyfin-base.css'><\/body> /g" /usr/share/jellyfin/web/index.html
|
sed -i "s/<\/body>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/jellyfin\/jellyfin-base.css'><\/body> /g" /usr/share/jellyfin/web/index.html
|
||||||
sed -i "s/<\/body>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/body> /g" /usr/share/jellyfin/web/index.html
|
sed -i "s/<\/body>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/body> /g" /usr/share/jellyfin/web/index.html
|
||||||
printf 'Stylesheet set to %s\n' "${TP_THEME}
|
printf 'Stylesheet set to %s\n' "${TP_THEME}
|
||||||
"
|
"
|
||||||
fi
|
fi
|
@ -8,6 +8,7 @@ echo '----------------------------------'
|
|||||||
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_SCHEME'=${TP_SCHEME}\\n\
|
||||||
'TP_THEME'=${TP_THEME}\\n"
|
'TP_THEME'=${TP_THEME}\\n"
|
||||||
|
|
||||||
# Set default
|
# Set default
|
||||||
@ -15,6 +16,10 @@ 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
|
||||||
|
if [[ -z ${TP_SCHEME} ]]; then
|
||||||
|
echo 'No scheme set, defaulting to https'
|
||||||
|
TP_SCHEME='https'
|
||||||
|
fi
|
||||||
|
|
||||||
THEME_TYPE='theme-options'
|
THEME_TYPE='theme-options'
|
||||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||||
@ -38,8 +43,8 @@ if ! grep -q "${TP_DOMAIN}/css/base" /app/lazylibrarian/data/interfaces/bookstra
|
|||||||
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\/lazylibrarian\/lazylibrarian-base.css'><\/head> /g" /app/lazylibrarian/data/interfaces/bookstrap/base.html
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/lazylibrarian\/lazylibrarian-base.css'><\/head> /g" /app/lazylibrarian/data/interfaces/bookstrap/base.html
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" /app/lazylibrarian/data/interfaces/bookstrap/base.html
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" /app/lazylibrarian/data/interfaces/bookstrap/base.html
|
||||||
printf 'Stylesheet set to %s\n' "${TP_THEME}
|
printf 'Stylesheet set to %s\n' "${TP_THEME}
|
||||||
"
|
"
|
||||||
fi
|
fi
|
@ -8,6 +8,7 @@ echo '-------------------------------'
|
|||||||
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_SCHEME'=${TP_SCHEME}\\n\
|
||||||
'TP_THEME'=${TP_THEME}\\n"
|
'TP_THEME'=${TP_THEME}\\n"
|
||||||
|
|
||||||
# Set default
|
# Set default
|
||||||
@ -15,6 +16,10 @@ 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
|
||||||
|
if [[ -z ${TP_SCHEME} ]]; then
|
||||||
|
echo 'No scheme set, defaulting to https'
|
||||||
|
TP_SCHEME='https'
|
||||||
|
fi
|
||||||
|
|
||||||
THEME_TYPE='theme-options'
|
THEME_TYPE='theme-options'
|
||||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||||
@ -38,8 +43,8 @@ if ! grep -q "${TP_DOMAIN}/css/base" /usr/share/webapps/librespeed/index.html; t
|
|||||||
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\/librespeed\/librespeed-base.css'><\/head> /g" /usr/share/webapps/librespeed/index.html
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/librespeed\/librespeed-base.css'><\/head> /g" /usr/share/webapps/librespeed/index.html
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" /usr/share/webapps/librespeed/index.html
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" /usr/share/webapps/librespeed/index.html
|
||||||
printf 'Stylesheet set to %s\n' "${TP_THEME}
|
printf 'Stylesheet set to %s\n' "${TP_THEME}
|
||||||
"
|
"
|
||||||
fi
|
fi
|
@ -8,6 +8,7 @@ echo '---------------------------'
|
|||||||
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_SCHEME'=${TP_SCHEME}\\n\
|
||||||
'TP_ADDON'=${TP_ADDON}\\n\
|
'TP_ADDON'=${TP_ADDON}\\n\
|
||||||
'TP_THEME'=${TP_THEME}\\n"
|
'TP_THEME'=${TP_THEME}\\n"
|
||||||
|
|
||||||
@ -24,6 +25,10 @@ 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
|
||||||
|
if [[ -z ${TP_SCHEME} ]]; then
|
||||||
|
echo 'No scheme set, defaulting to https'
|
||||||
|
TP_SCHEME='https'
|
||||||
|
fi
|
||||||
|
|
||||||
THEME_TYPE='theme-options'
|
THEME_TYPE='theme-options'
|
||||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||||
@ -47,15 +52,15 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; 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\/lidarr\/lidarr-base.css'><\/head> /g" "${APP_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/lidarr\/lidarr-base.css'><\/head> /g" "${APP_FILEPATH}"
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${APP_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${APP_FILEPATH}"
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/base\/lidarr\/lidarr-base.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/lidarr\/lidarr-base.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
||||||
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
||||||
if [[ -n ${TP_ADDON} ]]; then
|
if [[ -n ${TP_ADDON} ]]; then
|
||||||
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/addons\/lidarr\/${addon}\/${addon}.css'><\/head> /g" "${APP_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/lidarr\/${addon}\/${addon}.css'><\/head> /g" "${APP_FILEPATH}"
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/addons\/lidarr\/${addon}\/${addon}.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/lidarr\/${addon}\/${addon}.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
||||||
printf 'Added custom addon: %s\n\n' "${addon}"
|
printf 'Added custom addon: %s\n\n' "${addon}"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
@ -16,6 +16,7 @@ echo -e "Variables set:\\n\
|
|||||||
'TP_HOTIO'=${TP_HOTIO}\\n\
|
'TP_HOTIO'=${TP_HOTIO}\\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_SCHEME'=${TP_SCHEME}\\n\
|
||||||
'TP_THEME'=${TP_THEME}\\n"
|
'TP_THEME'=${TP_THEME}\\n"
|
||||||
|
|
||||||
# Set default
|
# Set default
|
||||||
@ -23,6 +24,10 @@ 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
|
||||||
|
if [[ -z ${TP_SCHEME} ]]; then
|
||||||
|
echo 'No scheme set, defaulting to https'
|
||||||
|
TP_SCHEME='https'
|
||||||
|
fi
|
||||||
|
|
||||||
THEME_TYPE='theme-options'
|
THEME_TYPE='theme-options'
|
||||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||||
@ -42,8 +47,8 @@ if [[ -z ${TP_THEME} ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
sed_file(){
|
sed_file(){
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/base\/mylar3\/mylar3-base.css'><\/head> /g" $1
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/mylar3\/mylar3-base.css'><\/head> /g" $1
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" $1
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /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"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,6 +8,7 @@ echo '---------------------------'
|
|||||||
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_SCHEME'=${TP_SCHEME}\\n\
|
||||||
'TP_THEME'=${TP_THEME}\\n"
|
'TP_THEME'=${TP_THEME}\\n"
|
||||||
|
|
||||||
APP_FILEPATH='/app/nzbget/webui/index.html'
|
APP_FILEPATH='/app/nzbget/webui/index.html'
|
||||||
@ -20,6 +21,10 @@ 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
|
||||||
|
if [[ -z ${TP_SCHEME} ]]; then
|
||||||
|
echo 'No scheme set, defaulting to https'
|
||||||
|
TP_SCHEME='https'
|
||||||
|
fi
|
||||||
|
|
||||||
THEME_TYPE='theme-options'
|
THEME_TYPE='theme-options'
|
||||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||||
@ -43,7 +48,7 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; 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\/nzbget\/nzbget-base.css'><\/head> /g" "${APP_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/nzbget\/nzbget-base.css'><\/head> /g" "${APP_FILEPATH}"
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${APP_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${APP_FILEPATH}"
|
||||||
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
||||||
fi
|
fi
|
@ -8,6 +8,7 @@ echo '-------------------------'
|
|||||||
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_SCHEME'=${TP_SCHEME}\\n\
|
||||||
'TP_THEME'=${TP_THEME}\\n"
|
'TP_THEME'=${TP_THEME}\\n"
|
||||||
|
|
||||||
APP_FILEPATH=''
|
APP_FILEPATH=''
|
||||||
@ -21,6 +22,10 @@ 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
|
||||||
|
if [[ -z ${TP_SCHEME} ]]; then
|
||||||
|
echo 'No scheme set, defaulting to https'
|
||||||
|
TP_SCHEME='https'
|
||||||
|
fi
|
||||||
|
|
||||||
THEME_TYPE='theme-options'
|
THEME_TYPE='theme-options'
|
||||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||||
@ -44,12 +49,12 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; 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\/plex\/plex-base.css'><\/head> /g" "${APP_FILEPATH}"/usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/plex\/plex-base.css'><\/head> /g" "${APP_FILEPATH}"/usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${APP_FILEPATH}"/usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${APP_FILEPATH}"/usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html
|
||||||
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
||||||
if [[ -n ${TP_ADDON} ]]; then
|
if [[ -n ${TP_ADDON} ]]; then
|
||||||
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/addons\/plex\/${addon}\/${addon}.css'><\/head> /g" "${APP_FILEPATH}"/usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/plex\/${addon}\/${addon}.css'><\/head> /g" "${APP_FILEPATH}"/usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html
|
||||||
printf 'Added custom addon: %s\n\n' "${addon}"
|
printf 'Added custom addon: %s\n\n' "${addon}"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
@ -8,6 +8,7 @@ echo '---------------------------'
|
|||||||
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_SCHEME'=${TP_SCHEME}\\n\
|
||||||
'TP_ADDON'=${TP_ADDON}\\n\
|
'TP_ADDON'=${TP_ADDON}\\n\
|
||||||
'TP_THEME'=${TP_THEME}\\n"
|
'TP_THEME'=${TP_THEME}\\n"
|
||||||
|
|
||||||
@ -24,6 +25,10 @@ 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
|
||||||
|
if [[ -z ${TP_SCHEME} ]]; then
|
||||||
|
echo 'No scheme set, defaulting to https'
|
||||||
|
TP_SCHEME='https'
|
||||||
|
fi
|
||||||
|
|
||||||
THEME_TYPE='theme-options'
|
THEME_TYPE='theme-options'
|
||||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||||
@ -47,15 +52,15 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; 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\/prowlarr\/prowlarr-base.css'><\/head> /g" "${APP_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/prowlarr\/prowlarr-base.css'><\/head> /g" "${APP_FILEPATH}"
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${APP_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${APP_FILEPATH}"
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/base\/prowlarr\/prowlarr-base.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/prowlarr\/prowlarr-base.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
||||||
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
||||||
if [[ -n ${TP_ADDON} ]]; then
|
if [[ -n ${TP_ADDON} ]]; then
|
||||||
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/addons\/prowlarr\/${addon}\/${addon}.css'><\/head> /g" "${APP_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/prowlarr\/${addon}\/${addon}.css'><\/head> /g" "${APP_FILEPATH}"
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/addons\/prowlarr\/${addon}\/${addon}.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/prowlarr\/${addon}\/${addon}.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
||||||
printf 'Added custom addon: %s\n\n' "${addon}"
|
printf 'Added custom addon: %s\n\n' "${addon}"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
@ -43,6 +43,7 @@ echo -e "Variables set:\\n\
|
|||||||
'TP_HOTIO'=${TP_HOTIO}\\n\
|
'TP_HOTIO'=${TP_HOTIO}\\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_SCHEME'=${TP_SCHEME}\\n\
|
||||||
'TP_THEME'=${TP_THEME}\\n"
|
'TP_THEME'=${TP_THEME}\\n"
|
||||||
|
|
||||||
# Set default
|
# Set default
|
||||||
@ -50,6 +51,10 @@ 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
|
||||||
|
if [[ -z ${TP_SCHEME} ]]; then
|
||||||
|
echo 'No scheme set, defaulting to https'
|
||||||
|
TP_SCHEME='https'
|
||||||
|
fi
|
||||||
|
|
||||||
THEME_TYPE='theme-options'
|
THEME_TYPE='theme-options'
|
||||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||||
@ -85,8 +90,8 @@ if [[ ! -d /themepark ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
sed_file(){
|
sed_file(){
|
||||||
sed -i "s/<\/body>/<link rel='stylesheet' href='https:\/\/${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='https:\/\/${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"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,6 +8,7 @@ echo '---------------------------'
|
|||||||
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_SCHEME'=${TP_SCHEME}\\n\
|
||||||
'TP_ADDON'=${TP_ADDON}\\n\
|
'TP_ADDON'=${TP_ADDON}\\n\
|
||||||
'TP_THEME'=${TP_THEME}\\n"
|
'TP_THEME'=${TP_THEME}\\n"
|
||||||
|
|
||||||
@ -24,6 +25,10 @@ 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
|
||||||
|
if [[ -z ${TP_SCHEME} ]]; then
|
||||||
|
echo 'No scheme set, defaulting to https'
|
||||||
|
TP_SCHEME='https'
|
||||||
|
fi
|
||||||
|
|
||||||
THEME_TYPE='theme-options'
|
THEME_TYPE='theme-options'
|
||||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||||
@ -47,15 +52,15 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; 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\/radarr\/radarr-base.css'><\/head> /g" "${APP_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/radarr\/radarr-base.css'><\/head> /g" "${APP_FILEPATH}"
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${APP_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${APP_FILEPATH}"
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/base\/radarr\/radarr-base.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/radarr\/radarr-base.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
||||||
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
||||||
if [[ -n ${TP_ADDON} ]]; then
|
if [[ -n ${TP_ADDON} ]]; then
|
||||||
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/addons\/radarr\/${addon}\/${addon}.css'><\/head> /g" "${APP_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/radarr\/${addon}\/${addon}.css'><\/head> /g" "${APP_FILEPATH}"
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/addons\/radarr\/${addon}\/${addon}.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/radarr\/${addon}\/${addon}.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
||||||
printf 'Added custom addon: %s\n\n' "${addon}"
|
printf 'Added custom addon: %s\n\n' "${addon}"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
@ -8,6 +8,7 @@ echo '---------------------------'
|
|||||||
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_SCHEME'=${TP_SCHEME}\\n\
|
||||||
'TP_ADDON'=${TP_ADDON}\\n\
|
'TP_ADDON'=${TP_ADDON}\\n\
|
||||||
'TP_THEME'=${TP_THEME}\\n"
|
'TP_THEME'=${TP_THEME}\\n"
|
||||||
|
|
||||||
@ -24,6 +25,10 @@ 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
|
||||||
|
if [[ -z ${TP_SCHEME} ]]; then
|
||||||
|
echo 'No scheme set, defaulting to https'
|
||||||
|
TP_SCHEME='https'
|
||||||
|
fi
|
||||||
|
|
||||||
THEME_TYPE='theme-options'
|
THEME_TYPE='theme-options'
|
||||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||||
@ -47,15 +52,15 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; 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\/readarr\/readarr-base.css'><\/head> /g" "${APP_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/readarr\/readarr-base.css'><\/head> /g" "${APP_FILEPATH}"
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${APP_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${APP_FILEPATH}"
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/base\/readarr\/readarr-base.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/readarr\/readarr-base.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
||||||
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
||||||
if [[ -n ${TP_ADDON} ]]; then
|
if [[ -n ${TP_ADDON} ]]; then
|
||||||
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/addons\/readarr\/${addon}\/${addon}.css'><\/head> /g" "${APP_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/readarr\/${addon}\/${addon}.css'><\/head> /g" "${APP_FILEPATH}"
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/addons\/readarr\/${addon}\/${addon}.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/readarr\/${addon}\/${addon}.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
||||||
printf 'Added custom addon: %s\n\n' "${addon}"
|
printf 'Added custom addon: %s\n\n' "${addon}"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
@ -8,6 +8,7 @@ echo '------------------------------'
|
|||||||
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_SCHEME'=${TP_SCHEME}\\n\
|
||||||
'TP_THEME'=${TP_THEME}\\n"
|
'TP_THEME'=${TP_THEME}\\n"
|
||||||
|
|
||||||
# Set default
|
# Set default
|
||||||
@ -15,6 +16,10 @@ 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
|
||||||
|
if [[ -z ${TP_SCHEME} ]]; then
|
||||||
|
echo 'No scheme set, defaulting to https'
|
||||||
|
TP_SCHEME='https'
|
||||||
|
fi
|
||||||
|
|
||||||
THEME_TYPE='theme-options'
|
THEME_TYPE='theme-options'
|
||||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||||
@ -38,8 +43,8 @@ if ! grep -q "${TP_DOMAIN}/css/base" /app/rutorrent/index.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\/rutorrent\/rutorrent-base.css'><\/head> /g" /app/rutorrent/index.html
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/rutorrent\/rutorrent-base.css'><\/head> /g" /app/rutorrent/index.html
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" /app/rutorrent/index.html
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" /app/rutorrent/index.html
|
||||||
printf 'Stylesheet set to %s\n' "${TP_THEME}
|
printf 'Stylesheet set to %s\n' "${TP_THEME}
|
||||||
"
|
"
|
||||||
fi
|
fi
|
@ -8,6 +8,7 @@ echo '----------------------------'
|
|||||||
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_SCHEME'=${TP_SCHEME}\\n\
|
||||||
'TP_THEME'=${TP_THEME}\\n"
|
'TP_THEME'=${TP_THEME}\\n"
|
||||||
|
|
||||||
APP_FILEPATH='/app/sabnzbd'
|
APP_FILEPATH='/app/sabnzbd'
|
||||||
@ -21,6 +22,10 @@ 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
|
||||||
|
if [[ -z ${TP_SCHEME} ]]; then
|
||||||
|
echo 'No scheme set, defaulting to https'
|
||||||
|
TP_SCHEME='https'
|
||||||
|
fi
|
||||||
|
|
||||||
THEME_TYPE='theme-options'
|
THEME_TYPE='theme-options'
|
||||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||||
@ -44,13 +49,13 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}/interfaces/Glitter/templat
|
|||||||
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\/sabnzbd\/sabnzbd-base.css'><\/head> /g" "${APP_FILEPATH}/interfaces/Glitter/templates/main.tmpl"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/sabnzbd\/sabnzbd-base.css'><\/head> /g" "${APP_FILEPATH}/interfaces/Glitter/templates/main.tmpl"
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/base\/sabnzbd\/sabnzbd-base.css'><\/head> /g" "${APP_FILEPATH}/interfaces/Config/templates/_inc_header_uc.tmpl"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/sabnzbd\/sabnzbd-base.css'><\/head> /g" "${APP_FILEPATH}/interfaces/Config/templates/_inc_header_uc.tmpl"
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/base\/sabnzbd\/sabnzbd-base.css'><\/head> /g" "${APP_FILEPATH}/interfaces/Config/templates/login/main.tmpl"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/sabnzbd\/sabnzbd-base.css'><\/head> /g" "${APP_FILEPATH}/interfaces/Config/templates/login/main.tmpl"
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/base\/sabnzbd\/sabnzbd-base.css'><\/head> /g" "${APP_FILEPATH}/interfaces/wizard/inc_top.tmpl"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/sabnzbd\/sabnzbd-base.css'><\/head> /g" "${APP_FILEPATH}/interfaces/wizard/inc_top.tmpl"
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${APP_FILEPATH}/interfaces/Glitter/templates/main.tmpl"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${APP_FILEPATH}/interfaces/Glitter/templates/main.tmpl"
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${APP_FILEPATH}/interfaces/Config/templates/_inc_header_uc.tmpl"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${APP_FILEPATH}/interfaces/Config/templates/_inc_header_uc.tmpl"
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${APP_FILEPATH}/interfaces/Config/templates/login/main.tmpl"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${APP_FILEPATH}/interfaces/Config/templates/login/main.tmpl"
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${APP_FILEPATH}/interfaces/wizard/inc_top.tmpl"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${APP_FILEPATH}/interfaces/wizard/inc_top.tmpl"
|
||||||
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
||||||
fi
|
fi
|
@ -8,6 +8,7 @@ echo '---------------------------'
|
|||||||
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_SCHEME'=${TP_SCHEME}\\n\
|
||||||
'TP_ADDON'=${TP_ADDON}\\n\
|
'TP_ADDON'=${TP_ADDON}\\n\
|
||||||
'TP_THEME'=${TP_THEME}\\n"
|
'TP_THEME'=${TP_THEME}\\n"
|
||||||
|
|
||||||
@ -24,6 +25,10 @@ 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
|
||||||
|
if [[ -z ${TP_SCHEME} ]]; then
|
||||||
|
echo 'No scheme set, defaulting to https'
|
||||||
|
TP_SCHEME='https'
|
||||||
|
fi
|
||||||
|
|
||||||
THEME_TYPE='theme-options'
|
THEME_TYPE='theme-options'
|
||||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||||
@ -47,15 +52,15 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; 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\/sonarr\/sonarr-base.css'><\/head> /g" "${APP_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/sonarr\/sonarr-base.css'><\/head> /g" "${APP_FILEPATH}"
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${APP_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${APP_FILEPATH}"
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/base\/sonarr\/sonarr-base.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/sonarr\/sonarr-base.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
||||||
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
||||||
if [[ -n ${TP_ADDON} ]]; then
|
if [[ -n ${TP_ADDON} ]]; then
|
||||||
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/addons\/sonarr\/${addon}\/${addon}.css'><\/head> /g" "${APP_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/sonarr\/${addon}\/${addon}.css'><\/head> /g" "${APP_FILEPATH}"
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/addons\/sonarr\/${addon}\/${addon}.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/sonarr\/${addon}\/${addon}.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
||||||
printf 'Added custom addon: %s\n\n' "${addon}"
|
printf 'Added custom addon: %s\n\n' "${addon}"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
@ -8,6 +8,7 @@ echo '-------------------------------'
|
|||||||
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_SCHEME'=${TP_SCHEME}\\n\
|
||||||
'TP_THEME'=${TP_THEME}\\n"
|
'TP_THEME'=${TP_THEME}\\n"
|
||||||
|
|
||||||
# Set default
|
# Set default
|
||||||
@ -15,6 +16,10 @@ 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
|
||||||
|
if [[ -z ${TP_SCHEME} ]]; then
|
||||||
|
echo 'No scheme set, defaulting to https'
|
||||||
|
TP_SCHEME='https'
|
||||||
|
fi
|
||||||
|
|
||||||
THEME_TYPE='theme-options'
|
THEME_TYPE='theme-options'
|
||||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||||
@ -38,8 +43,8 @@ if ! grep -q "${TP_DOMAIN}/css/base" /usr/lib/node_modules/synclounge/dist/index
|
|||||||
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\/synclounge\/synclounge-base.css'><\/head> /g" /usr/lib/node_modules/synclounge/dist/index.html
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/synclounge\/synclounge-base.css'><\/head> /g" /usr/lib/node_modules/synclounge/dist/index.html
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" /usr/lib/node_modules/synclounge/dist/index.html
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" /usr/lib/node_modules/synclounge/dist/index.html
|
||||||
printf 'Stylesheet set to %s\n' "${TP_THEME}
|
printf 'Stylesheet set to %s\n' "${TP_THEME}
|
||||||
"
|
"
|
||||||
fi
|
fi
|
@ -8,6 +8,7 @@ echo '-----------------------------'
|
|||||||
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_SCHEME'=${TP_SCHEME}\\n\
|
||||||
'TP_THEME'=${TP_THEME}\\n"
|
'TP_THEME'=${TP_THEME}\\n"
|
||||||
|
|
||||||
APP_FILEPATH='/app/tautulli/data/interfaces/default/base.html'
|
APP_FILEPATH='/app/tautulli/data/interfaces/default/base.html'
|
||||||
@ -21,6 +22,10 @@ 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
|
||||||
|
if [[ -z ${TP_SCHEME} ]]; then
|
||||||
|
echo 'No scheme set, defaulting to https'
|
||||||
|
TP_SCHEME='https'
|
||||||
|
fi
|
||||||
|
|
||||||
THEME_TYPE='theme-options'
|
THEME_TYPE='theme-options'
|
||||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||||
@ -44,7 +49,7 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; 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\/tautulli\/tautulli-base.css'><\/head> /g" "${APP_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/tautulli\/tautulli-base.css'><\/head> /g" "${APP_FILEPATH}"
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${APP_FILEPATH}"
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${APP_FILEPATH}"
|
||||||
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
||||||
fi
|
fi
|
@ -8,6 +8,7 @@ echo '-------------------------------'
|
|||||||
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_SCHEME'=${TP_SCHEME}\\n\
|
||||||
'TP_THEME'=${TP_THEME}\\n"
|
'TP_THEME'=${TP_THEME}\\n"
|
||||||
|
|
||||||
# Set default
|
# Set default
|
||||||
@ -15,6 +16,10 @@ 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
|
||||||
|
if [[ -z ${TP_SCHEME} ]]; then
|
||||||
|
echo 'No scheme set, defaulting to https'
|
||||||
|
TP_SCHEME='https'
|
||||||
|
fi
|
||||||
|
|
||||||
THEME_TYPE='theme-options'
|
THEME_TYPE='theme-options'
|
||||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||||
@ -38,8 +43,8 @@ if ! grep -q "${TP_DOMAIN}/css/base" /usr/lib/node_modules/thelounge/client/inde
|
|||||||
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\/thelounge\/thelounge-base.css'><\/head> /g" /usr/lib/node_modules/thelounge/client/index.html.tpl
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/thelounge\/thelounge-base.css'><\/head> /g" /usr/lib/node_modules/thelounge/client/index.html.tpl
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" /usr/lib/node_modules/thelounge/client/index.html.tpl
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" /usr/lib/node_modules/thelounge/client/index.html.tpl
|
||||||
printf 'Stylesheet set to %s\n' "${TP_THEME}
|
printf 'Stylesheet set to %s\n' "${TP_THEME}
|
||||||
"
|
"
|
||||||
fi
|
fi
|
@ -8,6 +8,7 @@ echo '---------------------------------'
|
|||||||
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_SCHEME'=${TP_SCHEME}\\n\
|
||||||
'TP_THEME'=${TP_THEME}\\n"
|
'TP_THEME'=${TP_THEME}\\n"
|
||||||
|
|
||||||
# Set default
|
# Set default
|
||||||
@ -15,6 +16,10 @@ 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
|
||||||
|
if [[ -z ${TP_SCHEME} ]]; then
|
||||||
|
echo 'No scheme set, defaulting to https'
|
||||||
|
TP_SCHEME='https'
|
||||||
|
fi
|
||||||
|
|
||||||
THEME_TYPE='theme-options'
|
THEME_TYPE='theme-options'
|
||||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||||
@ -38,8 +43,8 @@ if ! grep -q "${TP_DOMAIN}/css/base" /usr/share/transmission/web/index.html; the
|
|||||||
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\/transmission\/transmission-base.css'><\/head> /g" /usr/share/transmission/web/index.html
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/transmission\/transmission-base.css'><\/head> /g" /usr/share/transmission/web/index.html
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" /usr/share/transmission/web/index.html
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" /usr/share/transmission/web/index.html
|
||||||
printf 'Stylesheet set to %s\n' "${TP_THEME}
|
printf 'Stylesheet set to %s\n' "${TP_THEME}
|
||||||
"
|
"
|
||||||
fi
|
fi
|
@ -24,6 +24,7 @@ fi
|
|||||||
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_SCHEME'=${TP_SCHEME}\\n\
|
||||||
'TP_THEME'=${TP_THEME}\\n"
|
'TP_THEME'=${TP_THEME}\\n"
|
||||||
|
|
||||||
# Set default
|
# Set default
|
||||||
@ -31,6 +32,10 @@ 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
|
||||||
|
if [[ -z ${TP_SCHEME} ]]; then
|
||||||
|
echo 'No scheme set, defaulting to https'
|
||||||
|
TP_SCHEME='https'
|
||||||
|
fi
|
||||||
|
|
||||||
THEME_TYPE='theme-options'
|
THEME_TYPE='theme-options'
|
||||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||||
@ -138,7 +143,7 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${INDEX_FILEPATH}"; then
|
|||||||
echo '---------------------------------------------------------'
|
echo '---------------------------------------------------------'
|
||||||
echo '| Adding the stylesheet to /vuetorrent/public/index.html |'
|
echo '| Adding the stylesheet to /vuetorrent/public/index.html |'
|
||||||
echo '---------------------------------------------------------'
|
echo '---------------------------------------------------------'
|
||||||
sed -i "s/<\/body>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/base\/vuetorrent\/vuetorrent-base.css'><\/body> /g" "${INDEX_FILEPATH}"
|
sed -i "s/<\/body>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/vuetorrent\/vuetorrent-base.css'><\/body> /g" "${INDEX_FILEPATH}"
|
||||||
sed -i "s/<\/body>/<link rel='stylesheet' href='https:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/body> /g" "${INDEX_FILEPATH}"
|
sed -i "s/<\/body>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/body> /g" "${INDEX_FILEPATH}"
|
||||||
printf 'Stylesheet set to %s on public index.html\n' "${TP_THEME}"
|
printf 'Stylesheet set to %s on public index.html\n' "${TP_THEME}"
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue
Block a user