Compare commits

...
1 Commits
Author SHA1 Message Date
arakasi72 ac23d1d943 Develop (#346)
* Update rtinst

* Update rtupdate

* Update rtsetup

* Update rtsetup

* Update rtsetup

* Update rtsetup

* Update rtupdate

* Update rtinst

* Update rtupdate
2018-06-28 12:34:59 +01:00
3 changed files with 36 additions and 9 deletions
+14
View File
@@ -31,6 +31,20 @@ if [ "$(id -u)" != "0" ]; then
exit 1 exit 1
fi fi
# kill apt-daily.service if running
if [[ $(systemctl list-units --all apt-daily.service | fgrep -c apt-daily.service) -gt 0 ]]; then
systemctl stop apt-daily.service > /dev/null 2>&1
systemctl kill --kill-who=all apt-daily.service > /dev/null 2>&1
# wait until `apt-get updated` has been killed
while ! (systemctl list-units --all apt-daily.service | fgrep -q dead)
do
sleep 1;
done
fi
apt-get -qq update
if [ $(dpkg-query -W -f='${Status}' git 2>/dev/null | grep -c "ok installed") -eq 0 ]; then if [ $(dpkg-query -W -f='${Status}' git 2>/dev/null | grep -c "ok installed") -eq 0 ]; then
echo "Installing git" echo "Installing git"
apt-get -yqq install git 2>&1 >> /dev/null apt-get -yqq install git 2>&1 >> /dev/null
+14 -1
View File
@@ -15,7 +15,7 @@
PATH=/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/bin:/sbin PATH=/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/bin:/sbin
# if left blank will install latest version of rtorrent, or set to a specific release E.G. '0.9.6' to install that release # if left blank will install latest version of rtorrent, or set to a specific release E.G. '0.9.6' to install that release
rtorrentrel='0.9.6' rtorrentrel=''
#url's of the major components #url's of the major components
rt_url="http://rtorrent.net/downloads/" rt_url="http://rtorrent.net/downloads/"
@@ -449,6 +449,19 @@ echo "No more user input required, you can complete unattended"
echo "It will take approx 10 minutes for the script to complete" echo "It will take approx 10 minutes for the script to complete"
echo echo
# kill apt-daily.service if running
if [[ $(systemctl list-units --all apt-daily.service | fgrep -c apt-daily.service) -gt 0 ]]; then
systemctl stop apt-daily.service >> $logfile 2>&1
systemctl kill --kill-who=all apt-daily.service >> $logfile 2>&1
# wait until `apt-get updated` has been killed
while ! (systemctl list-units --all apt-daily.service | fgrep -q dead)
do
sleep 1;
done
fi
#update amd upgrade system #update amd upgrade system
echo "Updating package lists" | tee $logfile echo "Updating package lists" | tee $logfile
apt-get -qq update | tee -a $logfile apt-get -qq update | tee -a $logfile
+8 -8
View File
@@ -137,11 +137,11 @@ if [ -z $passed_rtvers ]; then
exit 1 exit 1
fi fi
# checks if the OS is debian 9, and forces the version to 0.9.6 of it is # checks if the OS is debian 9, and forces the version to 0.9.7 of it is
if [ $rtdevrel = 0 ]; then if [ $rtdevrel = 0 ]; then
libvers='0.13.6' libvers='0.13.7'
rtvers='0.9.6' rtvers='0.9.7'
echo "Debian 9, and Ubuntu 17.10 and later, are only supported by libtorrent-0.13.6/rtorrent-0.9.6" echo "Debian 9, and Ubuntu 17.10 and later, are only supported by libtorrent-0.13.7/rtorrent-0.9.7"
else else
list_version list_version
fi fi
@@ -164,11 +164,11 @@ else
rtvers=$passed_rtvers rtvers=$passed_rtvers
fi fi
# checks if the OS is debian 9, and forces the version to 0.9.6 of it is # checks if the OS is debian 9, and forces the version to 0.9.7 of it is
if [ $rtdevrel = 0 ]; then if [ $rtdevrel = 0 ]; then
libvers='0.13.6' libvers='0.13.7'
rtvers='0.9.6' rtvers='0.9.7'
echo "Debian 9, and Ubuntu 17.10 and later, are only supported by libtorrent-0.13.6/rtorrent-0.9.6" echo "Debian 9, and Ubuntu 17.10 and later, are only supported by libtorrent-0.13.6/rtorrent-0.9.7"
fi fi
fi fi