mirror of
https://github.com/gilbN/theme.park.git
synced 2024-10-03 22:17:08 +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:
parent
cad7eb445f
commit
17fc9c0c39
@ -1,7 +1,7 @@
|
|||||||
FROM scratch
|
FROM scratch
|
||||||
|
|
||||||
|
|
||||||
LABEL maintainer="GilbN"
|
LABEL maintainer="GilbN"
|
||||||
LABEL app="Qbittorrent"
|
LABEL app="Qbittorrent"
|
||||||
|
|
||||||
#copy local files.
|
#copy local files.
|
||||||
COPY root/ /
|
COPY root/ /
|
@ -23,17 +23,17 @@ if [ "${TP_DISABLE_THEME}" = true ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! [[ -x "$(command -v svn)" ]]; then
|
if ! [[ -x "$(command -v git)" ]]; then
|
||||||
echo '--------------------------'
|
echo '--------------------------'
|
||||||
echo '| Installing svn package |'
|
echo '| Installing git package |'
|
||||||
echo '--------------------------'
|
echo '--------------------------'
|
||||||
if [ -x "$(command -v apk)" ]; then
|
if [ -x "$(command -v apk)" ]; then
|
||||||
apk update && \
|
apk update && \
|
||||||
apk add --no-cache subversion
|
apk add --no-cache git
|
||||||
apk add --no-cache perl
|
apk add --no-cache perl
|
||||||
elif [ -x "$(command -v apt-get)" ]; then
|
elif [ -x "$(command -v apt-get)" ]; then
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
apt-get install -y subversion
|
apt-get install -y git
|
||||||
apt-get install -y perl
|
apt-get install -y perl
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -80,15 +80,15 @@ if [[ ! -d /themepark ]]; then
|
|||||||
echo '---------------------------------------'
|
echo '---------------------------------------'
|
||||||
echo '| Downloading WebUI files from github |'
|
echo '| Downloading WebUI files from github |'
|
||||||
echo '---------------------------------------'
|
echo '---------------------------------------'
|
||||||
printf '\nDownloading qBittorrent webui to "/themepark"..please wait\n'
|
printf '\nDownloading qBittorrent to /temp\n'
|
||||||
svn export --quiet https://github.com/qbittorrent/qBittorrent/trunk/src/webui/www /themepark
|
git clone --depth 1 https://github.com/qbittorrent/qBittorrent /temp
|
||||||
printf '\nDownload finished\n\n'
|
printf '\nDownload finished\n\n'
|
||||||
printf '\nDownloading qBittorrent webui icons to "/themepark/xxx"..please wait\n'
|
cp -a /temp/src/webui/www /themepark
|
||||||
svn export --force --quiet https://github.com/qbittorrent/qBittorrent/trunk/src/icons /temp
|
cp -a /temp/src/icons/. /themepark/public/icons
|
||||||
cp -a /temp/. /themepark/public/icons
|
cp -a /temp/src/icons/. /themepark/private/icons
|
||||||
cp -a /temp/. /themepark/private/icons
|
printf '\nCopy finished\n\n'
|
||||||
rm -rf /temp
|
rm -rf /temp
|
||||||
printf '\nDownload finished\n\n'
|
printf '\nCleanup finished\n\n'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sed_file(){
|
sed_file(){
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
if ! [[ -x "$(command -v svn)" ]]; then
|
if ! [[ -x "$(command -v git)" ]]; then
|
||||||
echo "subversion" >> /mod-repo-packages-to-install.list
|
echo "git" >> /mod-repo-packages-to-install.list
|
||||||
echo "perl" >> /mod-repo-packages-to-install.list
|
echo "perl" >> /mod-repo-packages-to-install.list
|
||||||
fi
|
fi
|
||||||
|
@ -65,15 +65,15 @@ if [[ ! -d /themepark ]]; then
|
|||||||
echo '---------------------------------------'
|
echo '---------------------------------------'
|
||||||
echo '| Downloading WebUI files from github |'
|
echo '| Downloading WebUI files from github |'
|
||||||
echo '---------------------------------------'
|
echo '---------------------------------------'
|
||||||
printf '\nDownloading qBittorrent webui to "/themepark"..please wait\n'
|
printf '\nDownloading qBittorrent to /temp\n'
|
||||||
svn export --quiet https://github.com/qbittorrent/qBittorrent/trunk/src/webui/www /themepark
|
git clone --depth 1 https://github.com/qbittorrent/qBittorrent /temp
|
||||||
printf '\nDownload finished\n\n'
|
printf '\nDownload finished\n\n'
|
||||||
printf '\nDownloading qBittorrent webui icons to "/themepark/xxx"..please wait\n'
|
cp -a /temp/src/webui/www /themepark
|
||||||
svn export --force --quiet https://github.com/qbittorrent/qBittorrent/trunk/src/icons /temp
|
cp -a /temp/src/icons/. /themepark/public/icons
|
||||||
cp -a /temp/. /themepark/public/icons
|
cp -a /temp/src/icons/. /themepark/private/icons
|
||||||
cp -a /temp/. /themepark/private/icons
|
printf '\nCopy finished\n\n'
|
||||||
rm -rf /temp
|
rm -rf /temp
|
||||||
printf '\nDownload finished\n\n'
|
printf '\nCleanup finished\n\n'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sed_file(){
|
sed_file(){
|
||||||
|
Loading…
Reference in New Issue
Block a user