Update Deluge_install.sh

This commit is contained in:
jerry048 2021-12-15 13:42:34 +08:00 committed by GitHub
parent 7b665e4f4e
commit c2bc21e5d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -40,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.xz && cd deluge-$Deluge_rev
python setup.py clean -a
python setup.py build
if [ ! $? -eq 0 ]; then
@ -53,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]