RTL: update to v0.7.0

This commit is contained in:
openoms 2020-03-22 10:00:11 +00:00
parent 32b0fa9655
commit 94e39e6ae2
No known key found for this signature in database
GPG key ID: 5BFB77609B081B65
2 changed files with 5 additions and 4 deletions

View file

@ -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

View file

@ -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 ""