mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 06:48:00 +01:00
parent
af3db7f534
commit
09da8bdd26
1 changed files with 26 additions and 0 deletions
|
@ -46,6 +46,32 @@ displayClass="lcd"
|
|||
displayType=""
|
||||
fundRecovery=0
|
||||
|
||||
##############################################
|
||||
# check raspiblitz.conf for outdated variables
|
||||
##############################################
|
||||
|
||||
# change all cln to cl
|
||||
# https://github.com/rootzoll/raspiblitz/pull/2575#issuecomment-927261596
|
||||
if [ $(grep -c cln < /mnt/hdd/raspiblitz.conf) -gt 0 ];then
|
||||
sudo sed -i 's/cln/cl/g' /mnt/hdd/raspiblitz.conf
|
||||
sudo sed -i 's/cln/cl/g' _aliases
|
||||
|
||||
sudo sed -i 's/cln/cl/g' /home/bitcoin/.lightning/config
|
||||
sudo sed -i 's/cln/cl/g' /home/bitcoin/.lightning/testnet/config
|
||||
sudo sed -i 's/cln/cl/g' /home/bitcoin/.lightning/signet/config
|
||||
|
||||
sudo -u bitcoin mv /home/bitcoin/cln-plugins-available /home/bitcoin/cl-plugins-available
|
||||
sudo -u bitcoin mv /home/bitcoin/cln-plugins-enabled /home/bitcoin/cl-plugins-enabled
|
||||
sudo -u bitcoin mv /home/bitcoin/tcln-plugins-enabled /home/bitcoin/tcl-plugins-enabled
|
||||
sudo -u bitcoin mv /home/bitcoin/scln-plugins-enabled /home/bitcoin/scl-plugins-enabled
|
||||
|
||||
sudo sed -i 's/cln/cl/g' /etc/systemd/system/lightningd.service
|
||||
sudo sed -i 's/cln/cl/g' /etc/systemd/system/tlightningd.service
|
||||
sudo sed -i 's/cln/cl/g' /etc/systemd/system/slightningd.service
|
||||
|
||||
sudo /home/admin/config.scripts/blitz.shutdown.sh reboot
|
||||
fi
|
||||
|
||||
################################
|
||||
# INIT raspiblitz.info
|
||||
################################
|
||||
|
|
Loading…
Add table
Reference in a new issue