From 52bfddcde5830201d98d98d475707c13837e32b2 Mon Sep 17 00:00:00 2001 From: arakasi72 Date: Wed, 15 Oct 2014 10:41:37 +0100 Subject: [PATCH] Update rtinst.sh --- rtinst.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/rtinst.sh b/rtinst.sh index 0e6e337..f6293dc 100644 --- a/rtinst.sh +++ b/rtinst.sh @@ -373,8 +373,8 @@ echo "Installing vsftpd" | tee -a $logfile ftpport=$(random 41005 48995) if [ $RELNO = 12 ]; then - add-apt-repository -y ppa:thefrontiergroup/vsftpd >> $logfile 2>&1 - apt-get update >> $logfile 2>&1 + add-apt-repository -y ppa:thefrontiergroup/vsftpd >> $logfile 2>&1 + apt-get update >> $logfile 2>&1 fi if [ $RELNO = 7 ]; then @@ -525,6 +525,13 @@ mv $home/rtscripts/ru.ini /var/www/rutorrent/plugins/conf/plugins.ini # install nginx cd $home + +if [ -f "/etc/apache2/ports.conf" ]; then + echo "Detected apache2. Changing apache2 port to 81 in /etc/apache2/ports.conf" | tee -a $logfile + perl -pi -e "s/Listen 80/Listen 81/g" /etc/apache2/ports.conf + service apache2 restart >> $logfile 2>&1 +fi + echo "Installing nginx" | tee -a $logfile WEBPASS=$(genpasswd) htpasswd -c -b /var/www/rutorrent/.htpasswd $user $WEBPASS >> $logfile 2>&1