mirror of
https://github.com/gilbN/theme.park.git
synced 2024-11-19 17:42:32 +01:00
Update the other qbittorrent script with the new variable.
Switch shebang on the npm script
This commit is contained in:
parent
5e72e5b035
commit
1e97720f80
@ -1,4 +1,4 @@
|
|||||||
#!/command/with-contenv bash
|
#!/bin/sh
|
||||||
|
|
||||||
echo '--------------------------------------'
|
echo '--------------------------------------'
|
||||||
echo '| Nginx Proxy Manager theme.park Mod |'
|
echo '| Nginx Proxy Manager theme.park Mod |'
|
||||||
|
@ -23,6 +23,12 @@ if [ "${TP_DISABLE_THEME}" = true ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z ${QBITTORRENT_VERSION+x} ]; then \
|
||||||
|
echo 'QBITTORRENT_VERSION not set. Using the latest stable.'
|
||||||
|
QBITTORRENT_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
|
||||||
|
&& awk '/^P:qbittorrent-nox$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://' | sed 's/-.*//'); \
|
||||||
|
fi
|
||||||
|
|
||||||
if ! [[ -x "$(command -v git)" ]]; then
|
if ! [[ -x "$(command -v git)" ]]; then
|
||||||
echo '--------------------------'
|
echo '--------------------------'
|
||||||
echo '| Installing git package |'
|
echo '| Installing git package |'
|
||||||
@ -46,6 +52,7 @@ 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_SCHEME'=${TP_SCHEME}\\n\
|
||||||
|
'QBITTORRENT_VERSION'=${QBITTORRENT_VERSION}\\n\
|
||||||
'TP_THEME'=${TP_THEME}\\n"
|
'TP_THEME'=${TP_THEME}\\n"
|
||||||
|
|
||||||
# Set default
|
# Set default
|
||||||
@ -81,13 +88,16 @@ if [[ ! -d /themepark ]]; then
|
|||||||
echo '| Downloading WebUI files from github |'
|
echo '| Downloading WebUI files from github |'
|
||||||
echo '---------------------------------------'
|
echo '---------------------------------------'
|
||||||
printf '\nDownloading qBittorrent to /temp\n'
|
printf '\nDownloading qBittorrent to /temp\n'
|
||||||
git clone --depth 1 https://github.com/qbittorrent/qBittorrent /temp
|
echo 'Downloading WebUI for version:' "${QBITTORRENT_VERSION}"
|
||||||
|
git clone --depth 1 -b release-${QBITTORRENT_VERSION} https://github.com/qbittorrent/qBittorrent /temp
|
||||||
|
|
||||||
printf '\nDownload finished\n\n'
|
printf '\nDownload finished\n\n'
|
||||||
cp -a /temp/src/webui/www /themepark
|
cp -a /temp/src/webui/www /themepark
|
||||||
cp -a /temp/src/icons/. /themepark/public/icons
|
cp -a /temp/src/icons/. /themepark/public/icons
|
||||||
cp -a /temp/src/icons/. /themepark/private/icons
|
cp -a /temp/src/icons/. /themepark/private/icons
|
||||||
printf '\nCopy finished\n\n'
|
printf '\nCopy finished\n\n'
|
||||||
rm -rf /temp
|
rm -rf /temp
|
||||||
|
rm -rf /tmp/*
|
||||||
printf '\nCleanup finished\n\n'
|
printf '\nCleanup finished\n\n'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user