Merge branch 'main' of https://github.com/jerry048/Seedbox-Components into main
This commit is contained in:
commit
a0469ba87b
|
@ -1,21 +1,23 @@
|
|||
libtorrent_Ver=1.1.14
|
||||
Deluge_Ver=1.3.15
|
||||
Deluge_majver=1
|
||||
Deluge_minver=1.3
|
||||
Deluge_rev=1.3.15
|
||||
dewebport=8112
|
||||
|
||||
function Deluge_download {
|
||||
normal_1; echo "Downloading Deluge and its dependencies"; normal_2
|
||||
if [[ "${Deluge_Ver}" =~ "1.3." ]]; then
|
||||
if [[ "${Deluge_minver}" =~ "1.3" ]]; then
|
||||
while true; do
|
||||
result=$(wget -4 http://download.deluge-torrent.org/source/deluge-$Deluge_Ver.tar.xz 2>&1)
|
||||
result=$(wget -4 http://download.deluge-torrent.org/source/$Deluge_minver/deluge-$Deluge_rev.tar.xz 2>&1)
|
||||
if [[ ! $result =~ 404 ]]; then
|
||||
break
|
||||
fi
|
||||
sleep 2
|
||||
done
|
||||
apt-get -qqy install libboost-all-dev libboost-dev python python-twisted python-openssl python-setuptools intltool python-xdg python-chardet geoip-database python-notify python-pygame python-glade2 librsvg2-common xdg-utils python-mako
|
||||
# elif [[ "${Deluge_Ver}" =~ "2.0." ]]; then
|
||||
# elif [[ "${Deluge_minver}" =~ "2.0" ]]; then
|
||||
# while true; do
|
||||
# result=$(wget -4 http://download.deluge-torrent.org/source/2.0/deluge-$Deluge_Ver.tar.xz 2>&1)
|
||||
# result=$(wget -4 http://download.deluge-torrent.org/source/$Deluge_minver/deluge-$Deluge_rev.tar.xz 2>&1)
|
||||
# if [[ ! $result =~ 404 ]]; then
|
||||
# break
|
||||
# fi
|
||||
|
@ -38,8 +40,8 @@ function Deluge_install {
|
|||
exit 1
|
||||
fi
|
||||
## Installing Deluge
|
||||
test -e $HOME/deluge-$Deluge_Ver && rm -r $HOME/deluge-$Deluge_Ver
|
||||
tar xf deluge-$Deluge_Ver.tar.xz && rm /root/deluge-$Deluge_Ver.tar.xz && cd deluge-$Deluge_Ver
|
||||
test -e $HOME/deluge-$Deluge_rev && rm -r $HOME/deluge-$Deluge_rev
|
||||
tar xf deluge-$Deluge_rev.tar.xz && rm /root/deluge-$Deluge_rev.tar.xz && cd deluge-$Deluge_rev && wget --no-check-certificate https://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg
|
||||
python setup.py clean -a
|
||||
python setup.py build
|
||||
if [ ! $? -eq 0 ]; then
|
||||
|
@ -51,7 +53,7 @@ function Deluge_install {
|
|||
warn_1; echo "Deluge install failed"; normal_4
|
||||
exit 1
|
||||
fi
|
||||
cd $HOME && rm -r deluge-$Deluge_Ver
|
||||
cd $HOME && rm -r deluge-$Deluge_rev
|
||||
## Creating systemd services
|
||||
cat << EOF > /etc/systemd/system/deluged@.service
|
||||
[Unit]
|
||||
|
|
Loading…
Reference in New Issue