mirror of
https://github.com/gilbN/theme.park.git
synced 2024-11-20 01:52:32 +01:00
deploy: 6357ccae78
This commit is contained in:
parent
66b43ac17b
commit
2a66382a59
18
.github/workflows/docker-build.yml
vendored
18
.github/workflows/docker-build.yml
vendored
@ -4,9 +4,19 @@ on:
|
||||
types:
|
||||
- released
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
branch:
|
||||
description: 'Select branch'
|
||||
required: true
|
||||
type: choice
|
||||
options:
|
||||
- master
|
||||
- develop
|
||||
push:
|
||||
branches:
|
||||
- develop
|
||||
paths-ignore:
|
||||
- '.github/**'
|
||||
jobs:
|
||||
push_to_ghcr_io:
|
||||
runs-on: ubuntu-latest
|
||||
@ -28,12 +38,12 @@ jobs:
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GH_PAT }}
|
||||
- name: build&push master
|
||||
if: ${{ github.event.release.target_commitish == 'master' }}
|
||||
if: ${{ github.event.release.target_commitish == 'master' || github.event.inputs.branch == 'master' }}
|
||||
run: |
|
||||
docker build --build-arg TP_RELEASE=${{ steps.get_version.outputs.VERSION }} --build-arg BUILD_DATE=${{ steps.date_time.outputs.NOW }} --tag ghcr.io/gilbn/theme.park --tag ghcr.io/gilbn/theme.park:${{ steps.get_version.outputs.VERSION }} .
|
||||
docker push --all-tags ghcr.io/gilbn/theme.park
|
||||
- name: build&push develop
|
||||
if: ${{ github.ref == 'refs/heads/develop' }}
|
||||
if: ${{ github.ref == 'refs/heads/develop' || github.event.inputs.branch == 'develop' }}
|
||||
run: |
|
||||
docker build --build-arg TP_RELEASE=${{ steps.get_version.outputs.VERSION }} --build-arg BUILD_DATE=${{ steps.date_time.outputs.NOW }} --tag ghcr.io/gilbn/theme.park:develop .
|
||||
docker push --all-tags ghcr.io/gilbn/theme.park
|
||||
@ -56,12 +66,12 @@ jobs:
|
||||
username: ${{ secrets.DH_USER }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: build&push dh master
|
||||
if: ${{ github.event.release.target_commitish == 'master' }}
|
||||
if: ${{ github.event.release.target_commitish == 'master' || github.event.inputs.branch == 'master' }}
|
||||
run: |
|
||||
docker build --build-arg TP_RELEASE=${{ steps.get_version.outputs.VERSION }} --build-arg BUILD_DATE=${{ steps.date_time.outputs.NOW }} --tag gilbn/theme.park --tag gilbn/theme.park:${{ steps.get_version.outputs.VERSION }} .
|
||||
docker push --all-tags gilbn/theme.park
|
||||
- name: build&push dh develop
|
||||
if: ${{ github.ref == 'refs/heads/develop' }}
|
||||
if: ${{ github.ref == 'refs/heads/develop' || github.event.inputs.branch == 'develop' }}
|
||||
run: |
|
||||
docker build --build-arg TP_RELEASE=${{ steps.get_version.outputs.VERSION }} --build-arg BUILD_DATE=${{ steps.date_time.outputs.NOW }} --tag gilbn/theme.park:develop .
|
||||
docker push --all-tags gilbn/theme.park
|
||||
|
@ -9,6 +9,7 @@ echo -e "Variables set:\\n\
|
||||
'TP_DOMAIN'=${TP_DOMAIN}\\n\
|
||||
'TP_ADDON'=${TP_ADDON}\\n\
|
||||
'TP_COMMUNITY_THEME'=${TP_COMMUNITY_THEME}\\n\
|
||||
'TP_SCHEME'=${TP_SCHEME}\\n\
|
||||
'TP_THEME'=${TP_THEME}\\n"
|
||||
|
||||
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'
|
||||
TP_DOMAIN='theme-park.dev'
|
||||
fi
|
||||
if [[ -z ${TP_SCHEME} ]]; then
|
||||
echo 'No scheme set, defaulting to https'
|
||||
TP_SCHEME='https'
|
||||
fi
|
||||
|
||||
THEME_TYPE='theme-options'
|
||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||
@ -45,12 +50,12 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
|
||||
echo '---------------------------'
|
||||
echo '| Adding the stylesheet |'
|
||||
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='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\/base\/bazarr\/bazarr-base.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}"
|
||||
if [[ -n ${TP_ADDON} ]]; then
|
||||
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}"
|
||||
done
|
||||
fi
|
||||
|
@ -8,6 +8,7 @@ echo '--------------------------------'
|
||||
echo -e "Variables set:\\n\
|
||||
'TP_DOMAIN'=${TP_DOMAIN}\\n\
|
||||
'TP_COMMUNITY_THEME'=${TP_COMMUNITY_THEME}\\n\
|
||||
'TP_SCHEME'=${TP_SCHEME}\\n\
|
||||
'TP_THEME'=${TP_THEME}\\n"
|
||||
|
||||
# Set default
|
||||
@ -15,6 +16,10 @@ if [[ -z ${TP_DOMAIN} ]]; then
|
||||
echo 'No domain set, defaulting to theme-park.dev'
|
||||
TP_DOMAIN='theme-park.dev'
|
||||
fi
|
||||
if [[ -z ${TP_SCHEME} ]]; then
|
||||
echo 'No scheme set, defaulting to https'
|
||||
TP_SCHEME='https'
|
||||
fi
|
||||
|
||||
THEME_TYPE='theme-options'
|
||||
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 '| 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
|
||||
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='${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}
|
||||
"
|
||||
fi
|
||||
|
@ -8,6 +8,7 @@ echo '---------------------------'
|
||||
echo -e "Variables set:\\n\
|
||||
'TP_DOMAIN'=${TP_DOMAIN}\\n\
|
||||
'TP_COMMUNITY_THEME'=${TP_COMMUNITY_THEME}\\n\
|
||||
'TP_SCHEME'=${TP_SCHEME}\\n\
|
||||
'TP_THEME'=${TP_THEME}\\n"
|
||||
|
||||
# Set default
|
||||
@ -15,6 +16,10 @@ if [[ -z ${TP_DOMAIN} ]]; then
|
||||
echo 'No domain set, defaulting to theme-park.dev'
|
||||
TP_DOMAIN='theme-park.dev'
|
||||
fi
|
||||
if [[ -z ${TP_SCHEME} ]]; then
|
||||
echo 'No scheme set, defaulting to https'
|
||||
TP_SCHEME='https'
|
||||
fi
|
||||
|
||||
THEME_TYPE='theme-options'
|
||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||
@ -39,8 +44,8 @@ if ! grep -q "${TP_DOMAIN}/css/base" ${DELUGE_INDEX_PATH}; then
|
||||
echo '---------------------------'
|
||||
echo '| Adding the stylesheet |'
|
||||
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='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\/base\/deluge\/deluge-base.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}
|
||||
"
|
||||
fi
|
||||
|
@ -11,6 +11,7 @@ echo -e "Variables set:\\n\
|
||||
'APP_FILEPATH'=${APP_FILEPATH}\\n\
|
||||
'TP_DOMAIN'=${TP_DOMAIN}\\n\
|
||||
'TP_COMMUNITY_THEME'=${TP_COMMUNITY_THEME}\\n\
|
||||
'TP_SCHEME'=${TP_SCHEME}\\n\
|
||||
'TP_THEME'=${TP_THEME}\\n"
|
||||
|
||||
# Set default
|
||||
@ -18,6 +19,10 @@ if [[ -z ${TP_DOMAIN} ]]; then
|
||||
echo 'No domain set, defaulting to theme-park.dev'
|
||||
TP_DOMAIN='theme-park.dev'
|
||||
fi
|
||||
if [[ -z ${TP_SCHEME} ]]; then
|
||||
echo 'No scheme set, defaulting to https'
|
||||
TP_SCHEME='https'
|
||||
fi
|
||||
|
||||
THEME_TYPE='theme-options'
|
||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||
@ -37,8 +42,8 @@ if [[ -z ${TP_THEME} ]]; then
|
||||
fi
|
||||
|
||||
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='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\/base\/duplicati\/duplicati-base.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"
|
||||
}
|
||||
|
||||
|
@ -8,6 +8,7 @@ echo '-------------------------'
|
||||
echo -e "Variables set:\\n\
|
||||
'TP_DOMAIN'=${TP_DOMAIN}\\n\
|
||||
'TP_COMMUNITY_THEME'=${TP_COMMUNITY_THEME}\\n\
|
||||
'TP_SCHEME'=${TP_SCHEME}\\n\
|
||||
'TP_THEME'=${TP_THEME}\\n"
|
||||
|
||||
# Set default
|
||||
@ -15,6 +16,10 @@ if [[ -z ${TP_DOMAIN} ]]; then
|
||||
echo 'No domain set, defaulting to theme-park.dev'
|
||||
TP_DOMAIN='theme-park.dev'
|
||||
fi
|
||||
if [[ -z ${TP_SCHEME} ]]; then
|
||||
echo 'No scheme set, defaulting to https'
|
||||
TP_SCHEME='https'
|
||||
fi
|
||||
|
||||
THEME_TYPE='theme-options'
|
||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||
@ -34,5 +39,5 @@ if [[ -z ${TP_THEME} ]]; then
|
||||
fi
|
||||
|
||||
# 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}"
|
||||
|
@ -8,6 +8,7 @@ echo '---------------------------'
|
||||
echo -e "Variables set:\\n\
|
||||
'TP_DOMAIN'=${TP_DOMAIN}\\n\
|
||||
'TP_COMMUNITY_THEME'=${TP_COMMUNITY_THEME}\\n\
|
||||
'TP_SCHEME'=${TP_SCHEME}\\n\
|
||||
'TP_THEME'=${TP_THEME}\\n"
|
||||
|
||||
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'
|
||||
TP_DOMAIN='theme-park.dev'
|
||||
fi
|
||||
if [[ -z ${TP_SCHEME} ]]; then
|
||||
echo 'No scheme set, defaulting to https'
|
||||
TP_SCHEME='https'
|
||||
fi
|
||||
|
||||
THEME_TYPE='theme-options'
|
||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||
@ -44,8 +49,8 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
|
||||
echo '---------------------------'
|
||||
echo '| Adding the stylesheet |'
|
||||
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='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\/base\/jackett\/jackett-base.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}
|
||||
"
|
||||
fi
|
@ -8,6 +8,7 @@ echo '-----------------------------'
|
||||
echo -e "Variables set:\\n\
|
||||
'TP_DOMAIN'=${TP_DOMAIN}\\n\
|
||||
'TP_COMMUNITY_THEME'=${TP_COMMUNITY_THEME}\\n\
|
||||
'TP_SCHEME'=${TP_SCHEME}\\n\
|
||||
'TP_THEME'=${TP_THEME}\\n"
|
||||
|
||||
# Set default
|
||||
@ -15,6 +16,10 @@ if [[ -z ${TP_DOMAIN} ]]; then
|
||||
echo 'No domain set, defaulting to theme-park.dev'
|
||||
TP_DOMAIN='theme-park.dev'
|
||||
fi
|
||||
if [[ -z ${TP_SCHEME} ]]; then
|
||||
echo 'No scheme set, defaulting to https'
|
||||
TP_SCHEME='https'
|
||||
fi
|
||||
|
||||
THEME_TYPE='theme-options'
|
||||
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 '| Adding the stylesheet |'
|
||||
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='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\/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\/${THEME_TYPE}\/${TP_THEME}.css'><\/body> /g" /usr/share/jellyfin/web/index.html
|
||||
printf 'Stylesheet set to %s\n' "${TP_THEME}
|
||||
"
|
||||
fi
|
@ -8,6 +8,7 @@ echo '----------------------------------'
|
||||
echo -e "Variables set:\\n\
|
||||
'TP_DOMAIN'=${TP_DOMAIN}\\n\
|
||||
'TP_COMMUNITY_THEME'=${TP_COMMUNITY_THEME}\\n\
|
||||
'TP_SCHEME'=${TP_SCHEME}\\n\
|
||||
'TP_THEME'=${TP_THEME}\\n"
|
||||
|
||||
# Set default
|
||||
@ -15,6 +16,10 @@ if [[ -z ${TP_DOMAIN} ]]; then
|
||||
echo 'No domain set, defaulting to theme-park.dev'
|
||||
TP_DOMAIN='theme-park.dev'
|
||||
fi
|
||||
if [[ -z ${TP_SCHEME} ]]; then
|
||||
echo 'No scheme set, defaulting to https'
|
||||
TP_SCHEME='https'
|
||||
fi
|
||||
|
||||
THEME_TYPE='theme-options'
|
||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||
@ -38,8 +43,8 @@ if ! grep -q "${TP_DOMAIN}/css/base" /app/lazylibrarian/data/interfaces/bookstra
|
||||
echo '---------------------------'
|
||||
echo '| Adding the stylesheet |'
|
||||
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='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\/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\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" /app/lazylibrarian/data/interfaces/bookstrap/base.html
|
||||
printf 'Stylesheet set to %s\n' "${TP_THEME}
|
||||
"
|
||||
fi
|
@ -8,6 +8,7 @@ echo '-------------------------------'
|
||||
echo -e "Variables set:\\n\
|
||||
'TP_DOMAIN'=${TP_DOMAIN}\\n\
|
||||
'TP_COMMUNITY_THEME'=${TP_COMMUNITY_THEME}\\n\
|
||||
'TP_SCHEME'=${TP_SCHEME}\\n\
|
||||
'TP_THEME'=${TP_THEME}\\n"
|
||||
|
||||
# Set default
|
||||
@ -15,6 +16,10 @@ if [[ -z ${TP_DOMAIN} ]]; then
|
||||
echo 'No domain set, defaulting to theme-park.dev'
|
||||
TP_DOMAIN='theme-park.dev'
|
||||
fi
|
||||
if [[ -z ${TP_SCHEME} ]]; then
|
||||
echo 'No scheme set, defaulting to https'
|
||||
TP_SCHEME='https'
|
||||
fi
|
||||
|
||||
THEME_TYPE='theme-options'
|
||||
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 '| Adding the stylesheet |'
|
||||
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='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\/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\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" /usr/share/webapps/librespeed/index.html
|
||||
printf 'Stylesheet set to %s\n' "${TP_THEME}
|
||||
"
|
||||
fi
|
@ -8,6 +8,7 @@ echo '---------------------------'
|
||||
echo -e "Variables set:\\n\
|
||||
'TP_DOMAIN'=${TP_DOMAIN}\\n\
|
||||
'TP_COMMUNITY_THEME'=${TP_COMMUNITY_THEME}\\n\
|
||||
'TP_SCHEME'=${TP_SCHEME}\\n\
|
||||
'TP_ADDON'=${TP_ADDON}\\n\
|
||||
'TP_THEME'=${TP_THEME}\\n"
|
||||
|
||||
@ -24,6 +25,10 @@ if [[ -z ${TP_DOMAIN} ]]; then
|
||||
echo 'No domain set, defaulting to theme-park.dev'
|
||||
TP_DOMAIN='theme-park.dev'
|
||||
fi
|
||||
if [[ -z ${TP_SCHEME} ]]; then
|
||||
echo 'No scheme set, defaulting to https'
|
||||
TP_SCHEME='https'
|
||||
fi
|
||||
|
||||
THEME_TYPE='theme-options'
|
||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||
@ -47,15 +52,15 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
|
||||
echo '---------------------------'
|
||||
echo '| Adding the stylesheet |'
|
||||
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='https:\/\/${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='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\/base\/lidarr\/lidarr-base.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='${TP_SCHEME}:\/\/${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\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
||||
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
||||
if [[ -n ${TP_ADDON} ]]; then
|
||||
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='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" "${APP_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}"
|
||||
done
|
||||
fi
|
||||
|
@ -16,6 +16,7 @@ echo -e "Variables set:\\n\
|
||||
'TP_HOTIO'=${TP_HOTIO}\\n\
|
||||
'TP_DOMAIN'=${TP_DOMAIN}\\n\
|
||||
'TP_COMMUNITY_THEME'=${TP_COMMUNITY_THEME}\\n\
|
||||
'TP_SCHEME'=${TP_SCHEME}\\n\
|
||||
'TP_THEME'=${TP_THEME}\\n"
|
||||
|
||||
# Set default
|
||||
@ -23,6 +24,10 @@ if [[ -z ${TP_DOMAIN} ]]; then
|
||||
echo 'No domain set, defaulting to theme-park.dev'
|
||||
TP_DOMAIN='theme-park.dev'
|
||||
fi
|
||||
if [[ -z ${TP_SCHEME} ]]; then
|
||||
echo 'No scheme set, defaulting to https'
|
||||
TP_SCHEME='https'
|
||||
fi
|
||||
|
||||
THEME_TYPE='theme-options'
|
||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||
@ -42,8 +47,8 @@ if [[ -z ${TP_THEME} ]]; then
|
||||
fi
|
||||
|
||||
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='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\/base\/mylar3\/mylar3-base.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"
|
||||
}
|
||||
|
||||
|
@ -8,6 +8,7 @@ echo '---------------------------'
|
||||
echo -e "Variables set:\\n\
|
||||
'TP_DOMAIN'=${TP_DOMAIN}\\n\
|
||||
'TP_COMMUNITY_THEME'=${TP_COMMUNITY_THEME}\\n\
|
||||
'TP_SCHEME'=${TP_SCHEME}\\n\
|
||||
'TP_THEME'=${TP_THEME}\\n"
|
||||
|
||||
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'
|
||||
TP_DOMAIN='theme-park.dev'
|
||||
fi
|
||||
if [[ -z ${TP_SCHEME} ]]; then
|
||||
echo 'No scheme set, defaulting to https'
|
||||
TP_SCHEME='https'
|
||||
fi
|
||||
|
||||
THEME_TYPE='theme-options'
|
||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||
@ -43,7 +48,7 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
|
||||
echo '---------------------------'
|
||||
echo '| Adding the stylesheet |'
|
||||
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='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\/base\/nzbget\/nzbget-base.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}"
|
||||
fi
|
@ -8,6 +8,7 @@ echo '-------------------------'
|
||||
echo -e "Variables set:\\n\
|
||||
'TP_DOMAIN'=${TP_DOMAIN}\\n\
|
||||
'TP_COMMUNITY_THEME'=${TP_COMMUNITY_THEME}\\n\
|
||||
'TP_SCHEME'=${TP_SCHEME}\\n\
|
||||
'TP_THEME'=${TP_THEME}\\n"
|
||||
|
||||
APP_FILEPATH=''
|
||||
@ -21,6 +22,10 @@ if [[ -z ${TP_DOMAIN} ]]; then
|
||||
echo 'No domain set, defaulting to theme-park.dev'
|
||||
TP_DOMAIN='theme-park.dev'
|
||||
fi
|
||||
if [[ -z ${TP_SCHEME} ]]; then
|
||||
echo 'No scheme set, defaulting to https'
|
||||
TP_SCHEME='https'
|
||||
fi
|
||||
|
||||
THEME_TYPE='theme-options'
|
||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||
@ -44,12 +49,12 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
|
||||
echo '---------------------------'
|
||||
echo '| Adding the stylesheet |'
|
||||
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='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\/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\/${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}"
|
||||
if [[ -n ${TP_ADDON} ]]; then
|
||||
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}"
|
||||
done
|
||||
fi
|
||||
|
@ -8,6 +8,7 @@ echo '---------------------------'
|
||||
echo -e "Variables set:\\n\
|
||||
'TP_DOMAIN'=${TP_DOMAIN}\\n\
|
||||
'TP_COMMUNITY_THEME'=${TP_COMMUNITY_THEME}\\n\
|
||||
'TP_SCHEME'=${TP_SCHEME}\\n\
|
||||
'TP_ADDON'=${TP_ADDON}\\n\
|
||||
'TP_THEME'=${TP_THEME}\\n"
|
||||
|
||||
@ -24,6 +25,10 @@ if [[ -z ${TP_DOMAIN} ]]; then
|
||||
echo 'No domain set, defaulting to theme-park.dev'
|
||||
TP_DOMAIN='theme-park.dev'
|
||||
fi
|
||||
if [[ -z ${TP_SCHEME} ]]; then
|
||||
echo 'No scheme set, defaulting to https'
|
||||
TP_SCHEME='https'
|
||||
fi
|
||||
|
||||
THEME_TYPE='theme-options'
|
||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||
@ -47,15 +52,15 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
|
||||
echo '---------------------------'
|
||||
echo '| Adding the stylesheet |'
|
||||
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='https:\/\/${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='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\/base\/prowlarr\/prowlarr-base.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='${TP_SCHEME}:\/\/${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\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
||||
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
||||
if [[ -n ${TP_ADDON} ]]; then
|
||||
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='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" "${APP_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}"
|
||||
done
|
||||
fi
|
||||
|
@ -43,6 +43,7 @@ echo -e "Variables set:\\n\
|
||||
'TP_HOTIO'=${TP_HOTIO}\\n\
|
||||
'TP_DOMAIN'=${TP_DOMAIN}\\n\
|
||||
'TP_COMMUNITY_THEME'=${TP_COMMUNITY_THEME}\\n\
|
||||
'TP_SCHEME'=${TP_SCHEME}\\n\
|
||||
'TP_THEME'=${TP_THEME}\\n"
|
||||
|
||||
# Set default
|
||||
@ -50,6 +51,10 @@ if [[ -z ${TP_DOMAIN} ]]; then
|
||||
echo 'No domain set, defaulting to theme-park.dev'
|
||||
TP_DOMAIN='theme-park.dev'
|
||||
fi
|
||||
if [[ -z ${TP_SCHEME} ]]; then
|
||||
echo 'No scheme set, defaulting to https'
|
||||
TP_SCHEME='https'
|
||||
fi
|
||||
|
||||
THEME_TYPE='theme-options'
|
||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||
@ -85,8 +90,8 @@ if [[ ! -d /themepark ]]; then
|
||||
fi
|
||||
|
||||
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='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\/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"
|
||||
}
|
||||
|
||||
|
@ -8,6 +8,7 @@ echo '---------------------------'
|
||||
echo -e "Variables set:\\n\
|
||||
'TP_DOMAIN'=${TP_DOMAIN}\\n\
|
||||
'TP_COMMUNITY_THEME'=${TP_COMMUNITY_THEME}\\n\
|
||||
'TP_SCHEME'=${TP_SCHEME}\\n\
|
||||
'TP_ADDON'=${TP_ADDON}\\n\
|
||||
'TP_THEME'=${TP_THEME}\\n"
|
||||
|
||||
@ -24,6 +25,10 @@ if [[ -z ${TP_DOMAIN} ]]; then
|
||||
echo 'No domain set, defaulting to theme-park.dev'
|
||||
TP_DOMAIN='theme-park.dev'
|
||||
fi
|
||||
if [[ -z ${TP_SCHEME} ]]; then
|
||||
echo 'No scheme set, defaulting to https'
|
||||
TP_SCHEME='https'
|
||||
fi
|
||||
|
||||
THEME_TYPE='theme-options'
|
||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||
@ -47,15 +52,15 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
|
||||
echo '---------------------------'
|
||||
echo '| Adding the stylesheet |'
|
||||
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='https:\/\/${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='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\/base\/radarr\/radarr-base.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='${TP_SCHEME}:\/\/${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\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
||||
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
||||
if [[ -n ${TP_ADDON} ]]; then
|
||||
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='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" "${APP_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}"
|
||||
done
|
||||
fi
|
||||
|
@ -8,6 +8,7 @@ echo '---------------------------'
|
||||
echo -e "Variables set:\\n\
|
||||
'TP_DOMAIN'=${TP_DOMAIN}\\n\
|
||||
'TP_COMMUNITY_THEME'=${TP_COMMUNITY_THEME}\\n\
|
||||
'TP_SCHEME'=${TP_SCHEME}\\n\
|
||||
'TP_ADDON'=${TP_ADDON}\\n\
|
||||
'TP_THEME'=${TP_THEME}\\n"
|
||||
|
||||
@ -24,6 +25,10 @@ if [[ -z ${TP_DOMAIN} ]]; then
|
||||
echo 'No domain set, defaulting to theme-park.dev'
|
||||
TP_DOMAIN='theme-park.dev'
|
||||
fi
|
||||
if [[ -z ${TP_SCHEME} ]]; then
|
||||
echo 'No scheme set, defaulting to https'
|
||||
TP_SCHEME='https'
|
||||
fi
|
||||
|
||||
THEME_TYPE='theme-options'
|
||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||
@ -47,15 +52,15 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
|
||||
echo '---------------------------'
|
||||
echo '| Adding the stylesheet |'
|
||||
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='https:\/\/${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='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\/base\/readarr\/readarr-base.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='${TP_SCHEME}:\/\/${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\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
||||
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
||||
if [[ -n ${TP_ADDON} ]]; then
|
||||
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='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" "${APP_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}"
|
||||
done
|
||||
fi
|
||||
|
@ -8,6 +8,7 @@ echo '------------------------------'
|
||||
echo -e "Variables set:\\n\
|
||||
'TP_DOMAIN'=${TP_DOMAIN}\\n\
|
||||
'TP_COMMUNITY_THEME'=${TP_COMMUNITY_THEME}\\n\
|
||||
'TP_SCHEME'=${TP_SCHEME}\\n\
|
||||
'TP_THEME'=${TP_THEME}\\n"
|
||||
|
||||
# Set default
|
||||
@ -15,6 +16,10 @@ if [[ -z ${TP_DOMAIN} ]]; then
|
||||
echo 'No domain set, defaulting to theme-park.dev'
|
||||
TP_DOMAIN='theme-park.dev'
|
||||
fi
|
||||
if [[ -z ${TP_SCHEME} ]]; then
|
||||
echo 'No scheme set, defaulting to https'
|
||||
TP_SCHEME='https'
|
||||
fi
|
||||
|
||||
THEME_TYPE='theme-options'
|
||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||
@ -38,8 +43,8 @@ if ! grep -q "${TP_DOMAIN}/css/base" /app/rutorrent/index.html; then
|
||||
echo '---------------------------'
|
||||
echo '| Adding the stylesheet |'
|
||||
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='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\/base\/rutorrent\/rutorrent-base.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}
|
||||
"
|
||||
fi
|
@ -8,6 +8,7 @@ echo '----------------------------'
|
||||
echo -e "Variables set:\\n\
|
||||
'TP_DOMAIN'=${TP_DOMAIN}\\n\
|
||||
'TP_COMMUNITY_THEME'=${TP_COMMUNITY_THEME}\\n\
|
||||
'TP_SCHEME'=${TP_SCHEME}\\n\
|
||||
'TP_THEME'=${TP_THEME}\\n"
|
||||
|
||||
APP_FILEPATH='/app/sabnzbd'
|
||||
@ -21,6 +22,10 @@ if [[ -z ${TP_DOMAIN} ]]; then
|
||||
echo 'No domain set, defaulting to theme-park.dev'
|
||||
TP_DOMAIN='theme-park.dev'
|
||||
fi
|
||||
if [[ -z ${TP_SCHEME} ]]; then
|
||||
echo 'No scheme set, defaulting to https'
|
||||
TP_SCHEME='https'
|
||||
fi
|
||||
|
||||
THEME_TYPE='theme-options'
|
||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||
@ -44,13 +49,13 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}/interfaces/Glitter/templat
|
||||
echo '---------------------------'
|
||||
echo '| Adding the stylesheet |'
|
||||
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='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='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='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='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='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='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='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\/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/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/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/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/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/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/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/wizard/inc_top.tmpl"
|
||||
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
||||
fi
|
@ -8,6 +8,7 @@ echo '---------------------------'
|
||||
echo -e "Variables set:\\n\
|
||||
'TP_DOMAIN'=${TP_DOMAIN}\\n\
|
||||
'TP_COMMUNITY_THEME'=${TP_COMMUNITY_THEME}\\n\
|
||||
'TP_SCHEME'=${TP_SCHEME}\\n\
|
||||
'TP_ADDON'=${TP_ADDON}\\n\
|
||||
'TP_THEME'=${TP_THEME}\\n"
|
||||
|
||||
@ -24,6 +25,10 @@ if [[ -z ${TP_DOMAIN} ]]; then
|
||||
echo 'No domain set, defaulting to theme-park.dev'
|
||||
TP_DOMAIN='theme-park.dev'
|
||||
fi
|
||||
if [[ -z ${TP_SCHEME} ]]; then
|
||||
echo 'No scheme set, defaulting to https'
|
||||
TP_SCHEME='https'
|
||||
fi
|
||||
|
||||
THEME_TYPE='theme-options'
|
||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||
@ -47,15 +52,15 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
|
||||
echo '---------------------------'
|
||||
echo '| Adding the stylesheet |'
|
||||
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='https:\/\/${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='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\/base\/sonarr\/sonarr-base.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='${TP_SCHEME}:\/\/${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\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${LOGIN_FILEPATH}"
|
||||
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
||||
if [[ -n ${TP_ADDON} ]]; then
|
||||
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='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" "${APP_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}"
|
||||
done
|
||||
fi
|
||||
|
@ -8,6 +8,7 @@ echo '-------------------------------'
|
||||
echo -e "Variables set:\\n\
|
||||
'TP_DOMAIN'=${TP_DOMAIN}\\n\
|
||||
'TP_COMMUNITY_THEME'=${TP_COMMUNITY_THEME}\\n\
|
||||
'TP_SCHEME'=${TP_SCHEME}\\n\
|
||||
'TP_THEME'=${TP_THEME}\\n"
|
||||
|
||||
# Set default
|
||||
@ -15,6 +16,10 @@ if [[ -z ${TP_DOMAIN} ]]; then
|
||||
echo 'No domain set, defaulting to theme-park.dev'
|
||||
TP_DOMAIN='theme-park.dev'
|
||||
fi
|
||||
if [[ -z ${TP_SCHEME} ]]; then
|
||||
echo 'No scheme set, defaulting to https'
|
||||
TP_SCHEME='https'
|
||||
fi
|
||||
|
||||
THEME_TYPE='theme-options'
|
||||
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 '| Adding the stylesheet |'
|
||||
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='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\/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\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" /usr/lib/node_modules/synclounge/dist/index.html
|
||||
printf 'Stylesheet set to %s\n' "${TP_THEME}
|
||||
"
|
||||
fi
|
@ -8,6 +8,7 @@ echo '-----------------------------'
|
||||
echo -e "Variables set:\\n\
|
||||
'TP_DOMAIN'=${TP_DOMAIN}\\n\
|
||||
'TP_COMMUNITY_THEME'=${TP_COMMUNITY_THEME}\\n\
|
||||
'TP_SCHEME'=${TP_SCHEME}\\n\
|
||||
'TP_THEME'=${TP_THEME}\\n"
|
||||
|
||||
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'
|
||||
TP_DOMAIN='theme-park.dev'
|
||||
fi
|
||||
if [[ -z ${TP_SCHEME} ]]; then
|
||||
echo 'No scheme set, defaulting to https'
|
||||
TP_SCHEME='https'
|
||||
fi
|
||||
|
||||
THEME_TYPE='theme-options'
|
||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||
@ -44,7 +49,7 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
|
||||
echo '---------------------------'
|
||||
echo '| Adding the stylesheet |'
|
||||
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='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\/base\/tautulli\/tautulli-base.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}"
|
||||
fi
|
@ -8,6 +8,7 @@ echo '-------------------------------'
|
||||
echo -e "Variables set:\\n\
|
||||
'TP_DOMAIN'=${TP_DOMAIN}\\n\
|
||||
'TP_COMMUNITY_THEME'=${TP_COMMUNITY_THEME}\\n\
|
||||
'TP_SCHEME'=${TP_SCHEME}\\n\
|
||||
'TP_THEME'=${TP_THEME}\\n"
|
||||
|
||||
# Set default
|
||||
@ -15,6 +16,10 @@ if [[ -z ${TP_DOMAIN} ]]; then
|
||||
echo 'No domain set, defaulting to theme-park.dev'
|
||||
TP_DOMAIN='theme-park.dev'
|
||||
fi
|
||||
if [[ -z ${TP_SCHEME} ]]; then
|
||||
echo 'No scheme set, defaulting to https'
|
||||
TP_SCHEME='https'
|
||||
fi
|
||||
|
||||
THEME_TYPE='theme-options'
|
||||
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 '| Adding the stylesheet |'
|
||||
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='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\/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\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" /usr/lib/node_modules/thelounge/client/index.html.tpl
|
||||
printf 'Stylesheet set to %s\n' "${TP_THEME}
|
||||
"
|
||||
fi
|
@ -8,6 +8,7 @@ echo '---------------------------------'
|
||||
echo -e "Variables set:\\n\
|
||||
'TP_DOMAIN'=${TP_DOMAIN}\\n\
|
||||
'TP_COMMUNITY_THEME'=${TP_COMMUNITY_THEME}\\n\
|
||||
'TP_SCHEME'=${TP_SCHEME}\\n\
|
||||
'TP_THEME'=${TP_THEME}\\n"
|
||||
|
||||
# Set default
|
||||
@ -15,6 +16,10 @@ if [[ -z ${TP_DOMAIN} ]]; then
|
||||
echo 'No domain set, defaulting to theme-park.dev'
|
||||
TP_DOMAIN='theme-park.dev'
|
||||
fi
|
||||
if [[ -z ${TP_SCHEME} ]]; then
|
||||
echo 'No scheme set, defaulting to https'
|
||||
TP_SCHEME='https'
|
||||
fi
|
||||
|
||||
THEME_TYPE='theme-options'
|
||||
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 '| Adding the stylesheet |'
|
||||
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='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\/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\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" /usr/share/transmission/web/index.html
|
||||
printf 'Stylesheet set to %s\n' "${TP_THEME}
|
||||
"
|
||||
fi
|
@ -24,6 +24,7 @@ fi
|
||||
echo -e "Variables set:\\n\
|
||||
'TP_DOMAIN'=${TP_DOMAIN}\\n\
|
||||
'TP_COMMUNITY_THEME'=${TP_COMMUNITY_THEME}\\n\
|
||||
'TP_SCHEME'=${TP_SCHEME}\\n\
|
||||
'TP_THEME'=${TP_THEME}\\n"
|
||||
|
||||
# Set default
|
||||
@ -31,6 +32,10 @@ if [[ -z ${TP_DOMAIN} ]]; then
|
||||
echo 'No domain set, defaulting to theme-park.dev'
|
||||
TP_DOMAIN='theme-park.dev'
|
||||
fi
|
||||
if [[ -z ${TP_SCHEME} ]]; then
|
||||
echo 'No scheme set, defaulting to https'
|
||||
TP_SCHEME='https'
|
||||
fi
|
||||
|
||||
THEME_TYPE='theme-options'
|
||||
if [ "${TP_COMMUNITY_THEME}" = true ]; then
|
||||
@ -138,7 +143,7 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${INDEX_FILEPATH}"; then
|
||||
echo '---------------------------------------------------------'
|
||||
echo '| Adding the stylesheet to /vuetorrent/public/index.html |'
|
||||
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='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\/base\/vuetorrent\/vuetorrent-base.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}"
|
||||
fi
|
Loading…
Reference in New Issue
Block a user