mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-28 04:26:28 +02:00
cln: make sure .lightning/bitcoin dir exists
This commit is contained in:
@@ -144,6 +144,11 @@ function decryptHSMsecret() {
|
||||
###########
|
||||
if [ "$1" = "new" ] || [ "$1" = "new-force" ] || [ "$1" = "seed" ] || [ "$1" = "seed-force" ]; then
|
||||
|
||||
# make sure /home/bitcoin/.lightning/bitcoin exists (when lightningd was not run yet)
|
||||
if ! sudo ls /home/bitcoin/.lightning/bitcoin; then
|
||||
sudo -u bitcoin mkdir -p /home/bitcoin/.lightning/bitcoin/
|
||||
fi
|
||||
|
||||
# check/delete existing wallet
|
||||
if [ "$1" = "new-force" ] || [ "$1" = "seed-force" ]; then
|
||||
echo "# deleting any old wallet ..."
|
||||
|
Reference in New Issue
Block a user