mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-10 12:53:01 +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
|
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
|
# check/delete existing wallet
|
||||||
if [ "$1" = "new-force" ] || [ "$1" = "seed-force" ]; then
|
if [ "$1" = "new-force" ] || [ "$1" = "seed-force" ]; then
|
||||||
echo "# deleting any old wallet ..."
|
echo "# deleting any old wallet ..."
|
||||||
|
Reference in New Issue
Block a user