From 27c2f8b3c9828fa741fecf3078bf22f894a33469 Mon Sep 17 00:00:00 2001 From: arakasi72 Date: Fri, 19 Sep 2014 20:12:59 +0100 Subject: [PATCH] Update rtinst.sh --- rtinst.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/rtinst.sh b/rtinst.sh index 2c87894..002f251 100644 --- a/rtinst.sh +++ b/rtinst.sh @@ -7,18 +7,17 @@ WEBPASS='' PASS1='' PASS2='' -While $WEBPASS='' +while [ -z "$WEBPASS" ] do - read -p "Please enter password for rutorrent" PASS1 - read -p "Please re-enter password" PASS2 - if [ $PASS1 = $PASS2 ] + read -p "Please enter password for rutorrent " PASS1 + read -p "Please re-enter password " PASS2 + if [ "$PASS1" = "$PASS2" ] then - WEBPASS=$PASS1 + WEBPASS="$PASS1" fi done - - echo "$WEBPASS" - exit + + if [ "$FULLREL" = "Ubuntu 14.04.1 LTS" ] then @@ -148,3 +147,5 @@ cd ~ wget https://raw.githubusercontent.com/arakasi72/rtinst/master/rt sudo mv rt /usr/local/bin/rt sudo chmod 755 /usr/local/bin/rt + +/usr/local/bin/rt start