diff --git a/home.admin/config.scripts/blitz.setpassword.sh b/home.admin/config.scripts/blitz.setpassword.sh index 1a633c099..cdb868812 100644 --- a/home.admin/config.scripts/blitz.setpassword.sh +++ b/home.admin/config.scripts/blitz.setpassword.sh @@ -225,6 +225,7 @@ data.multiPass = '$newPassword'; console.log(JSON.stringify(data, null, 2)); EOF rm -f /home/rtl/RTL/backup-RTL-Config.json + rm -f /home/rtl/RTL/RTL-Config.json mv /home/admin/RTL-Config.json /home/rtl/RTL/ chown rtl:rtl /home/rtl/RTL/RTL-Config.json fi diff --git a/home.admin/config.scripts/bonus.rtl.sh b/home.admin/config.scripts/bonus.rtl.sh index 5c227037c..66c30f927 100755 --- a/home.admin/config.scripts/bonus.rtl.sh +++ b/home.admin/config.scripts/bonus.rtl.sh @@ -84,11 +84,10 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then sudo -u rtl rm -rf /home/rtl/RTL 2>/dev/null sudo -u rtl git clone https://github.com/ShahanaFarooqui/RTL.git /home/rtl/RTL cd /home/rtl/RTL - sudo -u rtl git reset --hard v0.6.7 + # https://github.com/Ride-The-Lightning/RTL/releases + sudo -u rtl git reset --hard v0.7.0 # from https://github.com/Ride-The-Lightning/RTL/commits/master # git checkout 917feebfa4fb583360c140e817c266649307ef72 - # git fetch origin - # git checkout feature/0.6.5 if [ -d "/home/rtl/RTL" ]; then echo "OK - RTL code copy looks good" else @@ -101,7 +100,7 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then # install echo "*** Run: npm install ***" export NG_CLI_ANALYTICS=false - sudo -u rtl npm install --only=production + sudo -u rtl npm install --only=prod cd .. # check if node_modules exist now if [ -d "/home/rtl/RTL/node_modules" ]; then @@ -139,6 +138,7 @@ data.nodes[0].Settings.channelBackupPath = '/home/rtl/RTL-SCB-backup-$hostname' //Output data console.log(JSON.stringify(data, null, 2)); EOF + sudo rm -f /home/rtl/RTL/RTL-Config.json sudo mv /home/admin/RTL-Config.json /home/rtl/RTL/ sudo chown rtl:rtl /home/rtl/RTL/RTL-Config.json echo ""