From eb6fc653817d48b5cab9b81404bcec1bcafbedff Mon Sep 17 00:00:00 2001 From: Christian Rotzoll Date: Sun, 17 Mar 2019 00:28:14 +0100 Subject: [PATCH] added sudo to stop lnd --- home.admin/config.scripts/lnd.rescue.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/home.admin/config.scripts/lnd.rescue.sh b/home.admin/config.scripts/lnd.rescue.sh index 91ca980..a1c0c65 100755 --- a/home.admin/config.scripts/lnd.rescue.sh +++ b/home.admin/config.scripts/lnd.rescue.sh @@ -89,6 +89,7 @@ elif [ ${mode} = "restore" ]; then fi if [ ${countZips} -eq 1 ]; then + clear filename=$(sudo ls /home/admin/lnd-rescue-*.tar.gz) echo "OK -> found file to restore: ${filename}" @@ -112,7 +113,7 @@ elif [ ${mode} = "restore" ]; then # stop LND echo "Stopping lnd..." - systemctl stop lnd + sudo systemctl stop lnd sleep 5 echo "OK" echo