1
0
mirror of https://github.com/gilbN/theme.park.git synced 2024-07-04 11:07:56 +02:00

Move from subversion to git for pulling the qbittorrent webui (#530)

* Move from subversion to git for pulling the qbittorrent webui

* slight verbage changes
This commit is contained in:
Blake 2024-01-11 12:32:19 -05:00 committed by GitHub
parent cad7eb445f
commit 17fc9c0c39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 21 deletions

View File

@ -1,7 +1,7 @@
FROM scratch
LABEL maintainer="GilbN"
LABEL app="Qbittorrent"
#copy local files.
COPY root/ /

View File

@ -23,17 +23,17 @@ if [ "${TP_DISABLE_THEME}" = true ]; then
exit 0
fi
if ! [[ -x "$(command -v svn)" ]]; then
if ! [[ -x "$(command -v git)" ]]; then
echo '--------------------------'
echo '| Installing svn package |'
echo '| Installing git package |'
echo '--------------------------'
if [ -x "$(command -v apk)" ]; then
apk update && \
apk add --no-cache subversion
apk add --no-cache git
apk add --no-cache perl
elif [ -x "$(command -v apt-get)" ]; then
apt-get update && \
apt-get install -y subversion
apt-get install -y git
apt-get install -y perl
fi
fi
@ -80,15 +80,15 @@ if [[ ! -d /themepark ]]; then
echo '---------------------------------------'
echo '| Downloading WebUI files from github |'
echo '---------------------------------------'
printf '\nDownloading qBittorrent webui to "/themepark"..please wait\n'
svn export --quiet https://github.com/qbittorrent/qBittorrent/trunk/src/webui/www /themepark
printf '\nDownloading qBittorrent to /temp\n'
git clone --depth 1 https://github.com/qbittorrent/qBittorrent /temp
printf '\nDownload finished\n\n'
printf '\nDownloading qBittorrent webui icons to "/themepark/xxx"..please wait\n'
svn export --force --quiet https://github.com/qbittorrent/qBittorrent/trunk/src/icons /temp
cp -a /temp/. /themepark/public/icons
cp -a /temp/. /themepark/private/icons
cp -a /temp/src/webui/www /themepark
cp -a /temp/src/icons/. /themepark/public/icons
cp -a /temp/src/icons/. /themepark/private/icons
printf '\nCopy finished\n\n'
rm -rf /temp
printf '\nDownload finished\n\n'
printf '\nCleanup finished\n\n'
fi
sed_file(){

View File

@ -1,6 +1,6 @@
#!/usr/bin/with-contenv bash
if ! [[ -x "$(command -v svn)" ]]; then
echo "subversion" >> /mod-repo-packages-to-install.list
if ! [[ -x "$(command -v git)" ]]; then
echo "git" >> /mod-repo-packages-to-install.list
echo "perl" >> /mod-repo-packages-to-install.list
fi

View File

@ -65,15 +65,15 @@ if [[ ! -d /themepark ]]; then
echo '---------------------------------------'
echo '| Downloading WebUI files from github |'
echo '---------------------------------------'
printf '\nDownloading qBittorrent webui to "/themepark"..please wait\n'
svn export --quiet https://github.com/qbittorrent/qBittorrent/trunk/src/webui/www /themepark
printf '\nDownloading qBittorrent to /temp\n'
git clone --depth 1 https://github.com/qbittorrent/qBittorrent /temp
printf '\nDownload finished\n\n'
printf '\nDownloading qBittorrent webui icons to "/themepark/xxx"..please wait\n'
svn export --force --quiet https://github.com/qbittorrent/qBittorrent/trunk/src/icons /temp
cp -a /temp/. /themepark/public/icons
cp -a /temp/. /themepark/private/icons
cp -a /temp/src/webui/www /themepark
cp -a /temp/src/icons/. /themepark/public/icons
cp -a /temp/src/icons/. /themepark/private/icons
printf '\nCopy finished\n\n'
rm -rf /temp
printf '\nDownload finished\n\n'
printf '\nCleanup finished\n\n'
fi
sed_file(){