mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-19 04:00:34 +02:00
cln.hsmtool: init backup with the new wallet
This commit is contained in:
@@ -184,6 +184,10 @@ if [ "$1" = "new" ] || [ "$1" = "new-force" ] || [ "$1" = "seed" ] || [ "$1" = "
|
||||
# pass to 'hsmtool generatehsm hsm_secret' - confirm seedPassword
|
||||
(echo "0"; echo "${seedwords}"; echo "$seedpassword"; echo "$seedpassword") | sudo -u bitcoin /home/bitcoin/lightning/tools/hsmtool "generatehsm" $hsmSecretPath 1>&2
|
||||
fi
|
||||
|
||||
echo "# Re-init the backup plugin with the new wallet"
|
||||
/home/admin/config.scripts/cln-plugin.backup.sh on $CHAIN
|
||||
|
||||
exit 0
|
||||
|
||||
elif [ "$1" = "unlock" ]; then
|
||||
|
Reference in New Issue
Block a user