From 060a4b76601b6664fa56ffaafa4b65cd2a7b2139 Mon Sep 17 00:00:00 2001 From: arakasi72 Date: Fri, 2 Aug 2019 22:33:55 +0100 Subject: [PATCH] Update rtinst --- scripts/rtinst | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/scripts/rtinst b/scripts/rtinst index 9345f25..eb4f563 100755 --- a/scripts/rtinst +++ b/scripts/rtinst @@ -976,7 +976,13 @@ if [ -z $ru_current ]; then echo " RuTorrent was not installed" | tee -a $home/rtinst.info else echo " RuTorrent $ru_current installed" | tee -a $home/rtinst.info - echo " rutorrent can be accessed at https://$serverdn/rutorrent" | tee -a $home/rtinst.info + + if [ $leflag = 0 ]; then + echo " rutorrent can be accessed at https://$serverdn/rutorrent" | tee -a $home/rtinst.info + else + echo " rutorrent can be accessed at https://$serverip/rutorrent" | tee -a $home/rtinst.info + fi + if [ $passflag = 1 ]; then echo " rutorrent password set to $webpass" | tee -a $home/rtinst.info elif [ $passflag = 2 ]; then @@ -986,7 +992,12 @@ else fi echo " to change rutorrent password enter: rtpass" | tee -a $home/rtinst.info echo | tee -a $home/rtinst.info - echo " If enabled, access https downloads at https://$serverdn/download/$user" | tee -a $home/rtinst.info + + if [ $leflag = 0 ]; then + echo " If enabled, access https downloads at https://$serverdn/download/$user" | tee -a $home/rtinst.info + else + echo " If enabled, access https downloads at https://$serverip/download/$user" | tee -a $home/rtinst.info + fi fi echo | tee -a $home/rtinst.info