mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-22 16:10:55 +02:00
clnRepair: always use the appropriate CHAIN
This commit is contained in:
@@ -48,25 +48,25 @@ CHOICE=$(dialog --clear \
|
|||||||
|
|
||||||
case $CHOICE in
|
case $CHOICE in
|
||||||
ENCRYPT)
|
ENCRYPT)
|
||||||
/home/admin/config.scripts/cln.hsmtool.sh encrypt
|
/home/admin/config.scripts/cln.hsmtool.sh encrypt $CHAIN
|
||||||
source /mnt/hdd/raspiblitz.conf
|
source /mnt/hdd/raspiblitz.conf
|
||||||
;;
|
;;
|
||||||
|
|
||||||
DECRYPT)
|
DECRYPT)
|
||||||
/home/admin/config.scripts/cln.hsmtool.sh decrypt
|
/home/admin/config.scripts/cln.hsmtool.sh decrypt $CHAIN
|
||||||
source /mnt/hdd/raspiblitz.conf
|
source /mnt/hdd/raspiblitz.conf
|
||||||
;;
|
;;
|
||||||
|
|
||||||
PASSWORD_C)
|
PASSWORD_C)
|
||||||
/home/admin/config.scripts/cln.hsmtool.sh change-password
|
/home/admin/config.scripts/cln.hsmtool.sh change-password $CHAIN
|
||||||
;;
|
;;
|
||||||
|
|
||||||
AUTOUNLOCK-ON)
|
AUTOUNLOCK-ON)
|
||||||
/home/admin/config.scripts/cln.hsmtool.sh autounlock-on
|
/home/admin/config.scripts/cln.hsmtool.sh autounlock-on $CHAIN
|
||||||
;;
|
;;
|
||||||
|
|
||||||
AUTOUNLOCK-OFF)
|
AUTOUNLOCK-OFF)
|
||||||
/home/admin/config.scripts/cln.hsmtool.sh autounlock-off
|
/home/admin/config.scripts/cln.hsmtool.sh autounlock-off $CHAIN
|
||||||
;;
|
;;
|
||||||
|
|
||||||
BACKUP)
|
BACKUP)
|
||||||
@@ -96,7 +96,7 @@ case $CHOICE in
|
|||||||
sudo rm /home/bitcoin/.lightning/${CLNETWORK}/hsm_secret
|
sudo rm /home/bitcoin/.lightning/${CLNETWORK}/hsm_secret
|
||||||
sudo rm /home/bitcoin/.lightning/${CLNETWORK}/*.*
|
sudo rm /home/bitcoin/.lightning/${CLNETWORK}/*.*
|
||||||
# new
|
# new
|
||||||
/home/admin/config.scripts/cln.hsmtool.sh new
|
/home/admin/config.scripts/cln.hsmtool.sh new $CHAIN
|
||||||
;;
|
;;
|
||||||
|
|
||||||
FILERESTORE)
|
FILERESTORE)
|
||||||
|
Reference in New Issue
Block a user