mirror of
https://github.com/elisspace/rtinst.git
synced 2026-10-07 17:38:33 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eaffb50529 | ||
|
|
00aed27199 | ||
|
|
fe023bed1a | ||
|
|
37354f386a | ||
|
|
54f12f7877 | ||
|
|
c366ab575c | ||
|
|
d732810e83 | ||
|
|
79dd712da1 | ||
|
|
6ba83f6097 | ||
|
|
d3cb5e57e9 | ||
|
|
7bb8b0dd88 | ||
|
|
29a3ad947b | ||
|
|
98cac8525e | ||
|
|
c7d5d4a7ef |
+1
-1
@@ -8,7 +8,7 @@ method.insert = cfg.basedir, private|const|string, (cat,"<user home>/rtorren
|
|||||||
method.insert = cfg.watch, private|const|string, (cat,(cfg.basedir),"watch/")
|
method.insert = cfg.watch, private|const|string, (cat,(cfg.basedir),"watch/")
|
||||||
|
|
||||||
#method.insert = cfg.logs, private|const|string, (cat,(cfg.basedir),"log/")
|
#method.insert = cfg.logs, private|const|string, (cat,(cfg.basedir),"log/")
|
||||||
#method.insert = cfg.logfile, private|const|string, (cat,(c fg.logs),"rtorrent-",(system.time),".log")
|
#method.insert = cfg.logfile, private|const|string, (cat,(cfg.logs),"rtorrent-",(system.time),".log")
|
||||||
|
|
||||||
session.path.set = (cat,(cfg.basedir),".session")
|
session.path.set = (cat,(cfg.basedir),".session")
|
||||||
directory.default.set = (cat,(cfg.basedir),"download")
|
directory.default.set = (cat,(cfg.basedir),"download")
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ $pathToExternals = array(
|
|||||||
"gzip" => '/bin/gzip', // Something like /usr/bin/gzip. If empty, will be found in PATH.
|
"gzip" => '/bin/gzip', // Something like /usr/bin/gzip. If empty, will be found in PATH.
|
||||||
"id" => '/usr/bin/id', // Something like /usr/bin/id. If empty, will be found in PATH.
|
"id" => '/usr/bin/id', // Something like /usr/bin/id. If empty, will be found in PATH.
|
||||||
"stat" => '/usr/bin/stat', // Something like /usr/bin/stat. If empty, will be found in PATH.
|
"stat" => '/usr/bin/stat', // Something like /usr/bin/stat. If empty, will be found in PATH.
|
||||||
|
"pgrep" => '/usr/bin/pgrep', // Something like /usr/bin/pgrep. If empty, will be found in PATH.
|
||||||
);
|
);
|
||||||
|
|
||||||
$localhosts = array( // list of local interfaces
|
$localhosts = array( // list of local interfaces
|
||||||
|
|||||||
@@ -100,6 +100,8 @@ enabled = yes
|
|||||||
enabled = yes
|
enabled = yes
|
||||||
|
|
||||||
;; Disabled
|
;; Disabled
|
||||||
|
[_cloudflare]
|
||||||
|
enabled = no
|
||||||
[check_port]
|
[check_port]
|
||||||
enabled = no
|
enabled = no
|
||||||
[chunks]
|
[chunks]
|
||||||
@@ -120,5 +122,7 @@ enabled = no
|
|||||||
enabled = no
|
enabled = no
|
||||||
[scheduler]
|
[scheduler]
|
||||||
enabled = no
|
enabled = no
|
||||||
|
[spectrogram]
|
||||||
|
enabled = no
|
||||||
[xmpp]
|
[xmpp]
|
||||||
enabled = no
|
enabled = no
|
||||||
|
|||||||
+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"
|
||||||
|
|||||||
+25
-3
@@ -15,12 +15,12 @@
|
|||||||
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/"
|
||||||
|
|
||||||
xmlrpc_url="https://svn.code.sf.net/p/xmlrpc-c/code/stable/"
|
xmlrpc_url="https://svn.code.sf.net/p/xmlrpc-c/code/advanced/"
|
||||||
xmlrpc_url_alt="https://github.com/mirror/xmlrpc-c"
|
xmlrpc_url_alt="https://github.com/mirror/xmlrpc-c"
|
||||||
|
|
||||||
ru_url="https://github.com/Novik/ruTorrent/"
|
ru_url="https://github.com/Novik/ruTorrent/"
|
||||||
@@ -59,7 +59,29 @@ if [ "$relno" = "18" ]; then
|
|||||||
libcver=libcurl4
|
libcver=libcurl4
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export serverip=$(ip route get 8.8.8.8 | awk 'NR==1 {print $7}')
|
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])")
|
||||||
|
|||||||
+5
-5
@@ -14,11 +14,11 @@ osname=$(lsb_release -si)
|
|||||||
relno=$(lsb_release -sr | cut -d. -f1)
|
relno=$(lsb_release -sr | cut -d. -f1)
|
||||||
sourcedir='http://rtorrent.net/downloads/'
|
sourcedir='http://rtorrent.net/downloads/'
|
||||||
|
|
||||||
xmlrpc_url='https://svn.code.sf.net/p/xmlrpc-c/code/stable/'
|
xmlrpc_url='https://svn.code.sf.net/p/xmlrpc-c/code/advanced/'
|
||||||
xmlrpcloc='svn://svn.code.sf.net/p/xmlrpc-c/code/stable/'
|
xmlrpcloc='svn://svn.code.sf.net/p/xmlrpc-c/code/advanced/'
|
||||||
|
|
||||||
xmlrpc_url_alt='https://github.com/mirror/xmlrpc-c'
|
xmlrpc_url_alt='https://github.com/mirror/xmlrpc-c'
|
||||||
xmlrpcloc_alt='https://github.com/mirror/xmlrpc-c/trunk/stable'
|
xmlrpcloc_alt='https://github.com/mirror/xmlrpc-c/trunk/advanced'
|
||||||
|
|
||||||
rtdevrel=1
|
rtdevrel=1
|
||||||
|
|
||||||
@@ -168,7 +168,7 @@ else
|
|||||||
if [ $rtdevrel = 0 ]; then
|
if [ $rtdevrel = 0 ]; then
|
||||||
libvers='0.13.7'
|
libvers='0.13.7'
|
||||||
rtvers='0.9.7'
|
rtvers='0.9.7'
|
||||||
echo "Debian 9, and Ubuntu 17.10 and later, are only supported by libtorrent-0.13.6/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"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
@@ -225,7 +225,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