From 336ba5fff3dd27164e5ab09485c978a8bfa036a4 Mon Sep 17 00:00:00 2001 From: Christian Rotzoll Date: Thu, 27 Jun 2019 23:58:02 +0200 Subject: [PATCH] fix creating LND directory --- home.admin/70initLND.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home.admin/70initLND.sh b/home.admin/70initLND.sh index 1f9300b..c13c973 100755 --- a/home.admin/70initLND.sh +++ b/home.admin/70initLND.sh @@ -77,7 +77,7 @@ configExists=$( sudo ls /mnt/hdd/lnd/lnd.conf 2>/dev/null | grep -c lnd.conf ) if [ ${configExists} -eq 0 ]; then echo "Creating LND config ..." sudo mkdir /mnt/hdd/lnd 2> /dev/null - sudo chown -r bitcoin:bitcoin /mnt/hdd/lnd/ + sudo chown -R bitcoin:bitcoin /mnt/hdd/lnd sudo cp /home/admin/assets/lnd.${network}.conf /mnt/hdd/lnd/lnd.conf source <(sudo cat /mnt/hdd/${network}/${network}.conf 2>/dev/null | grep "rpcpassword" | sed 's/^[a-z]*\./lnd/g') sudo sed -i "s/^${network}d.rpcpass=.*/${network}d.rpcpass=${rpcpassword}/g" /mnt/hdd/lnd/lnd.conf