mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 07:07:46 +01:00
make custom LND port upgrade safe
This commit is contained in:
parent
a514b7e9a6
commit
c7eaf0af63
1 changed files with 8 additions and 0 deletions
|
@ -156,6 +156,14 @@ else
|
||||||
echo "Provisioning TOR - keep default" >> ${logFile}
|
echo "Provisioning TOR - keep default" >> ${logFile}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# CUSTOM LND PORT
|
||||||
|
# if a custom LND port was set, then run config for that
|
||||||
|
portNumber=$(sudo cat /mnt/hdd/lnd/lnd.conf | grep "^listen=" | cut -f2 -d':')
|
||||||
|
if [ ${#portNumber} -gt 0 ]; then
|
||||||
|
echo "Provisioning Custom LND Port ${portNumber}- run config script" >> ${logFile}
|
||||||
|
sudo /home/admin/config.scripts/lnd.setportsh ${portNumber} >> ${logFile} 2>&1
|
||||||
|
fi
|
||||||
|
|
||||||
sudo sed -i "s/^message=.*/message='Setup Done'/g" ${infoFile}
|
sudo sed -i "s/^message=.*/message='Setup Done'/g" ${infoFile}
|
||||||
|
|
||||||
echo "DONE - Give raspi some cool off time after hard building .... 20 secs sleep" >> ${logFile}
|
echo "DONE - Give raspi some cool off time after hard building .... 20 secs sleep" >> ${logFile}
|
||||||
|
|
Loading…
Add table
Reference in a new issue