mirror of
https://github.com/elisspace/rtinst.git
synced 2026-10-08 18:08:37 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
25fa01635a | ||
|
|
4588907f07 | ||
|
|
318573ed63 | ||
|
|
5035ab0a95 | ||
|
|
1b9794ee7d | ||
|
|
eaffb50529 | ||
|
|
00aed27199 | ||
|
|
fe023bed1a | ||
|
|
37354f386a | ||
|
|
54f12f7877 |
@@ -33,6 +33,7 @@ It has been tested with clean installs of:
|
|||||||
Debian 7 "Wheezy" (unsupported)
|
Debian 7 "Wheezy" (unsupported)
|
||||||
Debian 8 "Jessie"
|
Debian 8 "Jessie"
|
||||||
Debian 9 "Stretch"
|
Debian 9 "Stretch"
|
||||||
|
Debian 10 "Buster"
|
||||||
|
|
||||||
Services that will be installed and configured are
|
Services that will be installed and configured are
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -49,7 +49,7 @@ echo "Select from the following options:"
|
|||||||
echo "1.) rtsetup - update the rtinst scripts"
|
echo "1.) rtsetup - update the rtinst scripts"
|
||||||
echo "2.) rtadduser - add new user"
|
echo "2.) rtadduser - add new user"
|
||||||
echo "3.) rtremove - delete a user"
|
echo "3.) rtremove - delete a user"
|
||||||
echo "4.) rtdload $rtdaction - $rtdaction http downloads"
|
echo "4.) rtdload $rtdaction - $rtdaction https downloads"
|
||||||
echo "5.) rtupdate - up/down-grade rtorent/libtorrent"
|
echo "5.) rtupdate - up/down-grade rtorent/libtorrent"
|
||||||
echo "6.) rutupgrade - upgrade to latest version of RuTorrent"
|
echo "6.) rutupgrade - upgrade to latest version of RuTorrent"
|
||||||
echo "7.) rtwebmin - install webmin"
|
echo "7.) rtwebmin - install webmin"
|
||||||
|
|||||||
+31
-3
@@ -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=''
|
rtorrentrel='0.9.6'
|
||||||
|
|
||||||
#url's of the major components
|
#url's of the major components
|
||||||
rt_url="http://rtorrent.net/downloads/"
|
rt_url="http://rtorrent.net/downloads/"
|
||||||
@@ -59,8 +59,36 @@ if [ "$relno" = "18" ]; then
|
|||||||
libcver=libcurl4
|
libcver=libcurl4
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export serverip=$(ip route get 8.8.8.8 | awk 'NR==1 {print $7}')
|
if [ "$relno" = "10" ]; then
|
||||||
# export serverip=$(wget -qO- ipecho.net/plain)
|
phpver=php7.3
|
||||||
|
phploc=/etc/php/7.3
|
||||||
|
geoipver=php-geoip
|
||||||
|
libcver=libcurl4
|
||||||
|
fi
|
||||||
|
|
||||||
|
serveripa=$(ip route get 8.8.8.8 | awk 'NR==1 {print $7}')
|
||||||
|
serveripb=$(wget -qO- ipecho.net/plain)
|
||||||
|
|
||||||
|
if [ "$serveripa" = "$serveripb" ]; then
|
||||||
|
export serverip=$serveripa
|
||||||
|
else
|
||||||
|
echo "Select the IP address to use:"
|
||||||
|
echo "1.) "$serveripa
|
||||||
|
echo "2.) "$serveripb
|
||||||
|
|
||||||
|
while true
|
||||||
|
do
|
||||||
|
read answer
|
||||||
|
case $answer in [1] ) export serverip=$serveripa && break ;;
|
||||||
|
[2] ) export serverip=$serveripb && break ;;
|
||||||
|
* ) echo "Enter 1 or 2";;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "IP set to "$serverip
|
||||||
|
|
||||||
|
|
||||||
export logfile="/dev/null"
|
export logfile="/dev/null"
|
||||||
webpass=''
|
webpass=''
|
||||||
cronline1="@reboot sleep 10; /usr/local/bin/rtcheck irssi rtorrent"
|
cronline1="@reboot sleep 10; /usr/local/bin/rtcheck irssi rtorrent"
|
||||||
|
|||||||
+21
-6
@@ -8,7 +8,6 @@
|
|||||||
#
|
#
|
||||||
#########################################################################################
|
#########################################################################################
|
||||||
|
|
||||||
|
|
||||||
forceyes=1
|
forceyes=1
|
||||||
headless=1
|
headless=1
|
||||||
selfsign=1
|
selfsign=1
|
||||||
@@ -95,11 +94,27 @@ if [ $# -gt 0 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z $serverip ]; then
|
if [ -z $serverip ]; then
|
||||||
serverip=$(ip route get 8.8.8.8 | awk 'NR==1 {print $NF}')
|
serveripa=$(ip route get 8.8.8.8 | awk 'NR==1 {print $7}')
|
||||||
elif ! valid_ip $serverip; then
|
serveripb=$(wget -qO- ipecho.net/plain)
|
||||||
echo "$serverip is not a valid IP address"
|
if [ "$serveripa" = "$serveripb" ]; then
|
||||||
serverip=$(ip route get 8.8.8.8 | awk 'NR==1 {print $NF}')
|
serverip=$serveripa
|
||||||
echo "will use $serverip instead"
|
else
|
||||||
|
echo "Select the IP address to use:"
|
||||||
|
echo "1.) "$serveripa
|
||||||
|
echo "2.) "$serveripb
|
||||||
|
|
||||||
|
while true
|
||||||
|
do
|
||||||
|
read answer
|
||||||
|
case $answer in [1] ) serverip=$serveripa && break ;;
|
||||||
|
[2] ) serverip=$serveripb && break ;;
|
||||||
|
* ) echo "Enter 1 or 2";;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "IP set to "$serverip
|
||||||
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
serverdn=$(perl -MSocket -le "print((gethostbyaddr(inet_aton('$serverip'), AF_INET))[0])")
|
serverdn=$(perl -MSocket -le "print((gethostbyaddr(inet_aton('$serverip'), AF_INET))[0])")
|
||||||
|
|||||||
+19
-17
@@ -22,13 +22,13 @@ xmlrpcloc_alt='https://github.com/mirror/xmlrpc-c/trunk/advanced'
|
|||||||
|
|
||||||
rtdevrel=1
|
rtdevrel=1
|
||||||
|
|
||||||
if [ $relno = 9 ] || [ $(lsb_release -sr) = 17.10 ] || [ $relno = 18 ]; then
|
if [ $relno = 9 ] || [ $relno = 10 ] || [ $(lsb_release -sr) = 17.10 ] || [ $relno = 18 ]; then
|
||||||
rtdevrel=0
|
rtdevrel=0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $rtdevrel = 0 ]; then
|
#if [ $rtdevrel = 0 ]; then
|
||||||
sourcedir='https://github.com/rakshasa/'
|
# sourcedir='https://github.com/rakshasa/'
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
listsize=6
|
listsize=6
|
||||||
duoversion=''
|
duoversion=''
|
||||||
@@ -139,13 +139,15 @@ 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
|
||||||
libvers='0.13.7'
|
libvers='0.13.8'
|
||||||
rtvers='0.9.7'
|
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"
|
echo "Debian 9, and Ubuntu 17.10 and later, are only supported by libtorrent-0.13.7/rtorrent-0.9.7 or later"
|
||||||
else
|
else
|
||||||
list_version
|
list_version
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
list_version
|
||||||
|
|
||||||
echo "Install libtorrent-$libvers and rtorrent-$rtvers"
|
echo "Install libtorrent-$libvers and rtorrent-$rtvers"
|
||||||
echo "Your rtorrent config, torrents, and data will not be lost or changed"
|
echo "Your rtorrent config, torrents, and data will not be lost or changed"
|
||||||
echo -n "Continue? "
|
echo -n "Continue? "
|
||||||
@@ -166,9 +168,9 @@ else
|
|||||||
|
|
||||||
# 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
|
||||||
libvers='0.13.7'
|
libvers='0.13.8'
|
||||||
rtvers='0.9.7'
|
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"
|
echo "Debian 9, and Ubuntu 17.10 and later, are only supported by libtorrent-0.13.7/rtorrent-0.9.7 or later"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
@@ -192,13 +194,13 @@ rm -rf xmlrpc libtorrent* rtorrent*
|
|||||||
echo "Fetching source files"
|
echo "Fetching source files"
|
||||||
|
|
||||||
|
|
||||||
if [ $rtdevrel = 0 ]; then
|
#if [ $rtdevrel = 0 ]; then
|
||||||
git clone -q -b feature-bind --single-branch https://github.com/rakshasa/libtorrent.git libtorrent-$libvers
|
# git clone -q -b feature-bind --single-branch https://github.com/rakshasa/libtorrent.git libtorrent-$libvers
|
||||||
git clone -q -b feature-bind --single-branch https://github.com/rakshasa/rtorrent.git rtorrent-$rtvers
|
# git clone -q -b feature-bind --single-branch https://github.com/rakshasa/rtorrent.git rtorrent-$rtvers
|
||||||
else
|
#else
|
||||||
curl -# http://rtorrent.net/downloads/libtorrent-$libvers.tar.gz | tar xz
|
curl -# http://rtorrent.net/downloads/libtorrent-$libvers.tar.gz | tar xz
|
||||||
curl -# http://rtorrent.net/downloads/rtorrent-$rtvers.tar.gz | tar xz
|
curl -# http://rtorrent.net/downloads/rtorrent-$rtvers.tar.gz | tar xz
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
if [ $xmlrpc_repo = 0 ]; then
|
if [ $xmlrpc_repo = 0 ]; then
|
||||||
svn co $xmlrpcloc xmlrpc >> $logfile 2>&1
|
svn co $xmlrpcloc xmlrpc >> $logfile 2>&1
|
||||||
@@ -225,7 +227,7 @@ make -s install >> $logfile 2>&1
|
|||||||
cd ../rtorrent-$rtvers
|
cd ../rtorrent-$rtvers
|
||||||
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 >> $logfile 2>&1
|
./configure --prefix=/usr --with-xmlrpc-c --enable-ipv6 >> $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
|
||||||
ldconfig >> $logfile 2>&1
|
ldconfig >> $logfile 2>&1
|
||||||
|
|||||||
Reference in New Issue
Block a user