mirror of
https://github.com/gilbN/theme.park.git
synced 2024-11-20 01:52:32 +01:00
deploy: e265f47e1a
This commit is contained in:
parent
e2200f12e2
commit
37e98080a2
@ -25,3 +25,8 @@
|
||||
height: 40px;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.panel-header > img.logo {
|
||||
content: url("/css/addons/radarr/radarr-4k-logo/radarr4k-v3.png");
|
||||
width: auto;
|
||||
}
|
@ -4,19 +4,6 @@ echo '-------------------------'
|
||||
echo '| SWAG theme.park Mod |'
|
||||
echo '-------------------------'
|
||||
|
||||
if ! [[ -x "$(command -v svn)" ]]; then
|
||||
echo '--------------------------'
|
||||
echo '| Installing svn package |'
|
||||
echo '--------------------------'
|
||||
if [ -x "$(command -v apk)" ]; then
|
||||
apk update && \
|
||||
apk add --no-cache subversion
|
||||
elif [ -x "$(command -v apt-get)" ]; then
|
||||
apt-get update && \
|
||||
apt-get install -y subversion
|
||||
fi
|
||||
fi
|
||||
|
||||
# Display variables for troubleshooting
|
||||
echo -e "Variables set:\\n\
|
||||
'TP_BRANCH'=${TP_BRANCH}\\n"
|
||||
@ -41,7 +28,7 @@ fi
|
||||
|
||||
mkdir -p /config/www/themepark
|
||||
|
||||
SHA_RELEASE=$(curl -sL "https://api.github.com/repos/gilbn/theme.park/commits/${TP_BRANCH}" | jq -r '.sha');
|
||||
SHA_RELEASE=$(curl -sL "https://api.github.com/repos/themepark-dev/theme.park/commits/${TP_BRANCH}" | jq -r '.sha');
|
||||
if [[ ! -f "/config/www/themepark/sha.txt" ]]; then
|
||||
SHA=""
|
||||
else
|
||||
@ -50,13 +37,21 @@ fi
|
||||
# Downloading fresh webui files from source.
|
||||
if [[ $SHA != $SHA_RELEASE ]]; then
|
||||
echo "-----------------------------------------------------"
|
||||
echo "| Downloading latest files from ${TP_BRANCH} branch |"
|
||||
echo "| Cloning latest files from ${TP_BRANCH} branch |"
|
||||
echo "-----------------------------------------------------"
|
||||
rm -rf /tmp/themepark
|
||||
git clone --depth 1 --quiet --branch ${TP_BRANCH} https://github.com/themepark-dev/theme.park.git /tmp/themepark
|
||||
echo "-----------------------------------------------------"
|
||||
echo "| Copying files to /config/www/themepark |"
|
||||
echo "-----------------------------------------------------"
|
||||
cp -a /tmp/themepark/css /config/www/themepark/
|
||||
cp -a /tmp/themepark/resources /config/www/themepark/
|
||||
cp -a /tmp/themepark/themes.json /config/www/themepark/
|
||||
cp -a /tmp/themepark/index.html /config/www/themepark/
|
||||
rm -rf /tmp/themepark
|
||||
echo "-----------------------------------------------------"
|
||||
echo '| Clone and copy finished |'
|
||||
echo "-----------------------------------------------------"
|
||||
svn export --quiet --force "https://github.com/GilbN/theme.park/branches/${TP_BRANCH}/css" /config/www/themepark/css
|
||||
svn export --quiet --force "https://github.com/GilbN/theme.park/branches/${TP_BRANCH}/resources" /config/www/themepark/resources
|
||||
svn export --quiet --force "https://github.com/GilbN/theme.park/branches/${TP_BRANCH}/themes.json" /config/www/themepark
|
||||
svn export --quiet --force "https://github.com/GilbN/theme.park/branches/${TP_BRANCH}/index.html" /config/www/themepark
|
||||
printf '\nDownload finished\n\n'
|
||||
fi
|
||||
|
||||
cat <<< "$SHA_RELEASE" > "/config/www/themepark/sha.txt"
|
||||
|
@ -1,5 +0,0 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
if ! [[ -x "$(command -v svn)" ]]; then
|
||||
echo "subversion" >> /mod-repo-packages-to-install.list
|
||||
fi
|
@ -1 +0,0 @@
|
||||
oneshot
|
@ -1 +0,0 @@
|
||||
/etc/s6-overlay/s6-rc.d/init-mod-themepark-add-package/run
|
@ -28,7 +28,7 @@ fi
|
||||
|
||||
mkdir -p /config/www/themepark
|
||||
|
||||
SHA_RELEASE=$(curl -sL "https://api.github.com/repos/gilbn/theme.park/commits/${TP_BRANCH}" | jq -r '.sha');
|
||||
SHA_RELEASE=$(curl -sL "https://api.github.com/repos/themepark-dev/theme.park/commits/${TP_BRANCH}" | jq -r '.sha');
|
||||
if [[ ! -f "/config/www/themepark/sha.txt" ]]; then
|
||||
SHA=""
|
||||
else
|
||||
@ -37,13 +37,21 @@ fi
|
||||
# Downloading fresh webui files from source.
|
||||
if [[ $SHA != $SHA_RELEASE ]]; then
|
||||
echo "-----------------------------------------------------"
|
||||
echo "| Downloading latest files from ${TP_BRANCH} branch |"
|
||||
echo "| Cloning latest files from ${TP_BRANCH} branch |"
|
||||
echo "-----------------------------------------------------"
|
||||
rm -rf /tmp/themepark
|
||||
git clone --depth 1 --quiet --branch ${TP_BRANCH} https://github.com/themepark-dev/theme.park.git /tmp/themepark
|
||||
echo "-----------------------------------------------------"
|
||||
echo "| Copying files to /config/www/themepark |"
|
||||
echo "-----------------------------------------------------"
|
||||
cp -a /tmp/themepark/css /config/www/themepark/
|
||||
cp -a /tmp/themepark/resources /config/www/themepark/
|
||||
cp -a /tmp/themepark/themes.json /config/www/themepark/
|
||||
cp -a /tmp/themepark/index.html /config/www/themepark/
|
||||
rm -rf /tmp/themepark
|
||||
echo "-----------------------------------------------------"
|
||||
echo '| Clone and copy finished |'
|
||||
echo "-----------------------------------------------------"
|
||||
svn export --quiet --force "https://github.com/GilbN/theme.park/branches/${TP_BRANCH}/css" /config/www/themepark/css
|
||||
svn export --quiet --force "https://github.com/GilbN/theme.park/branches/${TP_BRANCH}/resources" /config/www/themepark/resources
|
||||
svn export --quiet --force "https://github.com/GilbN/theme.park/branches/${TP_BRANCH}/themes.json" /config/www/themepark
|
||||
svn export --quiet --force "https://github.com/GilbN/theme.park/branches/${TP_BRANCH}/index.html" /config/www/themepark
|
||||
printf '\nDownload finished\n\n'
|
||||
fi
|
||||
|
||||
cat <<< "$SHA_RELEASE" > "/config/www/themepark/sha.txt"
|
||||
|
@ -25,7 +25,7 @@
|
||||
"prowlarr-darker": "https://develop.theme-park.dev/css/addons/prowlarr/prowlarr-darker/prowlarr-darker.css?sha=c7aa9c3221ae3e77beccc3e6c2c4b729"
|
||||
},
|
||||
"radarr": {
|
||||
"radarr-4k-logo": "https://develop.theme-park.dev/css/addons/radarr/radarr-4k-logo/radarr-4k-logo.css?sha=800809857ace5553a3cbea2ce4fe8b7b",
|
||||
"radarr-4k-logo": "https://develop.theme-park.dev/css/addons/radarr/radarr-4k-logo/radarr-4k-logo.css?sha=049d5b05c28e55431ab2b424720d4ea4",
|
||||
"radarr-alt-calendar": "https://develop.theme-park.dev/css/addons/radarr/radarr-alt-calendar/radarr-alt-calendar.css?sha=1e84b48a6bf4d24c236392e15bb167be",
|
||||
"radarr-darker": "https://develop.theme-park.dev/css/addons/radarr/radarr-darker/radarr-darker.css?sha=2a30971854d495f7c56405bd4e73d34f"
|
||||
},
|
||||
@ -367,7 +367,7 @@
|
||||
},
|
||||
"radarr": {
|
||||
"addons": {
|
||||
"radarr-4k-logo": "https://develop.theme-park.dev/css/addons/radarr/radarr-4k-logo/radarr-4k-logo.css?sha=800809857ace5553a3cbea2ce4fe8b7b",
|
||||
"radarr-4k-logo": "https://develop.theme-park.dev/css/addons/radarr/radarr-4k-logo/radarr-4k-logo.css?sha=049d5b05c28e55431ab2b424720d4ea4",
|
||||
"radarr-alt-calendar": "https://develop.theme-park.dev/css/addons/radarr/radarr-alt-calendar/radarr-alt-calendar.css?sha=1e84b48a6bf4d24c236392e15bb167be",
|
||||
"radarr-darker": "https://develop.theme-park.dev/css/addons/radarr/radarr-darker/radarr-darker.css?sha=2a30971854d495f7c56405bd4e73d34f"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user