mirror of
https://github.com/elisspace/rtinst.git
synced 2026-10-07 17:38:33 +00:00
Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
16ddfa0325 | ||
|
|
14c270f096 | ||
|
|
5452c98799 | ||
|
|
016299230e |
+4
-4
@@ -203,7 +203,7 @@ osname=$(lsb_release -si)
|
|||||||
relno=$(lsb_release -sr | cut -d. -f1)
|
relno=$(lsb_release -sr | cut -d. -f1)
|
||||||
|
|
||||||
# Fallback if lsb_release -si returns anything else than Ubuntu, Debian or Raspbian
|
# Fallback if lsb_release -si returns anything else than Ubuntu, Debian or Raspbian
|
||||||
if [ ! "$osname" = "ubuntu" ] && [ ! "$osname" = "debian" ] && [ ! "$osname" = "raspbian" ]; then
|
if [ ! "$osname" = "ubuntu" ] && [ ! "$osname" = "debian" ] && [ ! "$osname" = "raspbian" ] && [ ! "$osname" = "Linuxmint" ]; then
|
||||||
osname=$(grep -oP '(?<=^ID=).+' /etc/os-release | tr -d '"')
|
osname=$(grep -oP '(?<=^ID=).+' /etc/os-release | tr -d '"')
|
||||||
osname=${osname^}
|
osname=${osname^}
|
||||||
fi
|
fi
|
||||||
@@ -301,11 +301,11 @@ if [ "$(id -u)" != "0" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# determine system
|
# determine system
|
||||||
if ([ "$osname" = "Ubuntu" ] && [ $relno -ge 16 ]) || ([ "$osname" = "Debian" ] && [ $relno -ge 9 ]) || ([ "$osname" = "Raspbian" ] && [ $relno -ge 9 ]); then
|
if ([ "$osname" = "Ubuntu" ] && [ $relno -ge 16 ]) || ([ "$osname" = "Debian" ] && [ $relno -ge 9 ]) || ([ "$osname" = "Raspbian" ] && [ $relno -ge 9 ]) || ([ "$osname" = "Linuxmint" ] && [ $relno -ge 16 ]); then
|
||||||
echo $fullrel
|
echo $fullrel
|
||||||
else
|
else
|
||||||
echo $fullrel
|
echo $fullrel
|
||||||
echo "Only Ubuntu release 16 and later, and Debian and Raspbian release 9 and later, are supported"
|
echo "Only Ubuntu and Linux Mint release 16 and later, and Debian and Raspbian release 9 and later, are supported"
|
||||||
echo "Your system does not appear to be supported"
|
echo "Your system does not appear to be supported"
|
||||||
echo "Check https://github.com/arakasi72/rtinst/wiki/Installing-on-Older-OS to see if it is supported by an earlier rtinst release"
|
echo "Check https://github.com/arakasi72/rtinst/wiki/Installing-on-Older-OS to see if it is supported by an earlier rtinst release"
|
||||||
exit
|
exit
|
||||||
@@ -613,7 +613,7 @@ if [ $osname = "Debian" ] && ! installed unrar; then
|
|||||||
cp $home/rar/unrar /bin/unrar
|
cp $home/rar/unrar /bin/unrar
|
||||||
rm -r $home/rar
|
rm -r $home/rar
|
||||||
fi
|
fi
|
||||||
elif [ $osname = "Ubuntu" ]; then
|
elif [ $osname = "Ubuntu" || $osname = "Linuxmint" ]; then
|
||||||
aptitude -q=5 -y install unrar >> $logfile 2>&1
|
aptitude -q=5 -y install unrar >> $logfile 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -62,14 +62,10 @@ if [ $(dpkg-query -W -f='${Status}' "certbot" 2>/dev/null | grep -c "ok installe
|
|||||||
aptitude -q=5 -y remove certbot python*-certbot-nginx >> $logfile 2>&1
|
aptitude -q=5 -y remove certbot python*-certbot-nginx >> $logfile 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Install Snapd service if not installed
|
# Install Snapd service
|
||||||
if [ $(dpkg-query -W -f='${Status}' "snapd" 2>/dev/null | grep -c "ok installed") = 0 ]; then
|
aptitude -q=5 -y install snapd >> $logfile 2>&1
|
||||||
echo "Installing snapd service"
|
|
||||||
aptitude -q=5 -y install snapd >> $logfile 2>&1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Install the core snap in order to get the latest snapd for Debian
|
# Install the core snap in order to get the latest snapd for Debian
|
||||||
if [ $osname = "Debian" ]; then snap install core >> $logfile 2>&1 && snap refresh core; fi
|
if [ $osname = "Debian" ]; then snap install core >> $logfile 2>&1; snap refresh core; fi
|
||||||
|
|
||||||
# Installing Certbot
|
# Installing Certbot
|
||||||
if [ $(snap list | grep -c "certbot") = 0 ]; then
|
if [ $(snap list | grep -c "certbot") = 0 ]; then
|
||||||
|
|||||||
+10
-9
@@ -44,7 +44,7 @@ if [ "$fullrelno" = "17.10" ]; then
|
|||||||
rtdevrel=0
|
rtdevrel=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ([ "$osname" = "Debian" ] || [ "$osname" = "Raspbian" ] && [ $relno -ge 9 ]) || ([ "$osname" = "Ubuntu" ] && [ $relno -ge 18 ]); then
|
if ([ "$osname" = "Debian" ] || [ "$osname" = "Raspbian" ] && [ $relno -ge 9 ]) || ([ "$osname" = "Ubuntu" ] && [ $relno -ge 18 ]) || ([ "$osname" = "Linuxmint" ] && [ $relno -ge 18 ]); then
|
||||||
rtdevrel=0
|
rtdevrel=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -157,7 +157,7 @@ if [ -z $passed_rtvers ]; then
|
|||||||
|
|
||||||
# checks if the OS is debian 9, and forces the version to 0.9.7 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
|
||||||
echo "For Debian 9, and Ubuntu 17.10 and later, recommend libtorrent-0.13.7/rtorrent-0.9.7 or later"
|
echo "For Debian 9, Ubuntu 17.10 or later and Linux Mint 17 or later, libtorrent-0.13.7/rtorrent-0.9.7 or later is recommended"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
list_version
|
list_version
|
||||||
@@ -184,7 +184,7 @@ else
|
|||||||
if [ $rtdevrel = 0 ]; then
|
if [ $rtdevrel = 0 ]; then
|
||||||
libvers='0.13.8'
|
libvers='0.13.8'
|
||||||
rtvers='0.9.8'
|
rtvers='0.9.8'
|
||||||
echo "Debian 9, and Ubuntu 17.10 and later, are only supported by libtorrent-0.13.7/rtorrent-0.9.7 or later"
|
echo "Debian 9, Ubuntu 17.10 or later and Linux Mint 17 or later are only supported by libtorrent-0.13.7/rtorrent-0.9.7 or later"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
@@ -218,16 +218,19 @@ echo "Fetching source files"
|
|||||||
|
|
||||||
if [ $xmlrpc_repo = 0 ]; then
|
if [ $xmlrpc_repo = 0 ]; then
|
||||||
svn co $xmlrpcloc xmlrpc >> $logfile 2>&1
|
svn co $xmlrpcloc xmlrpc >> $logfile 2>&1
|
||||||
|
if [ ! -e xmlrpc ]; then
|
||||||
|
git clone $xmlrpc_url_alt xmlrpc >> $logfile 2>&1
|
||||||
|
cd xmlrpc/stable
|
||||||
|
else cd xmlrpc; fi
|
||||||
|
|
||||||
cd xmlrpc
|
|
||||||
echo "Installing xmlrpc" | tee -a $logfile
|
echo "Installing xmlrpc" | tee -a $logfile
|
||||||
./configure --prefix=/usr --disable-cplusplus >> $logfile 2>&1
|
./configure --prefix=/usr --disable-cplusplus >> $logfile 2>&1
|
||||||
make -j$(nproc) >> $logfile 2>&1
|
make -j$(nproc) >> $logfile 2>&1
|
||||||
make -s install >> $logfile 2>&1
|
make -s install >> $logfile 2>&1
|
||||||
cd ..
|
cd $home/source
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd libtorrent-$libvers
|
cd libtorrent*
|
||||||
echo "Installing libtorrent" | tee -a $logfile
|
echo "Installing libtorrent" | tee -a $logfile
|
||||||
./autogen.sh >> $logfile 2>&1
|
./autogen.sh >> $logfile 2>&1
|
||||||
if [ $osname = "Raspbian" ]; then
|
if [ $osname = "Raspbian" ]; then
|
||||||
@@ -238,7 +241,7 @@ fi
|
|||||||
make -j$(nproc) >> $logfile 2>&1
|
make -j$(nproc) >> $logfile 2>&1
|
||||||
make -s install >> $logfile 2>&1
|
make -s install >> $logfile 2>&1
|
||||||
|
|
||||||
cd ../rtorrent-$rtvers
|
cd ../rtorrent*
|
||||||
echo "Installing rtorrent" | tee -a $logfile
|
echo "Installing rtorrent" | tee -a $logfile
|
||||||
./autogen.sh >> $logfile 2>&1
|
./autogen.sh >> $logfile 2>&1
|
||||||
./configure --prefix=/usr --with-xmlrpc-c --enable-ipv6 >> $logfile 2>&1
|
./configure --prefix=/usr --with-xmlrpc-c --enable-ipv6 >> $logfile 2>&1
|
||||||
@@ -246,8 +249,6 @@ make -j$(nproc) >> $logfile 2>&1
|
|||||||
make -s install >> $logfile 2>&1
|
make -s install >> $logfile 2>&1
|
||||||
ldconfig >> $logfile 2>&1
|
ldconfig >> $logfile 2>&1
|
||||||
|
|
||||||
echo "$libvers/$rtvers installed"
|
|
||||||
echo
|
|
||||||
|
|
||||||
if [ -d /var/www/rutorrent/conf/users ]; then
|
if [ -d /var/www/rutorrent/conf/users ]; then
|
||||||
cd /var/www/rutorrent/conf/users
|
cd /var/www/rutorrent/conf/users
|
||||||
|
|||||||
Reference in New Issue
Block a user