added sudo to stop lnd

This commit is contained in:
Christian Rotzoll
2019-03-17 00:28:14 +01:00
parent cfd6b5d359
commit eb6fc65381

View File

@@ -89,6 +89,7 @@ elif [ ${mode} = "restore" ]; then
fi fi
if [ ${countZips} -eq 1 ]; then if [ ${countZips} -eq 1 ]; then
clear
filename=$(sudo ls /home/admin/lnd-rescue-*.tar.gz) filename=$(sudo ls /home/admin/lnd-rescue-*.tar.gz)
echo "OK -> found file to restore: ${filename}" echo "OK -> found file to restore: ${filename}"
@@ -112,7 +113,7 @@ elif [ ${mode} = "restore" ]; then
# stop LND # stop LND
echo "Stopping lnd..." echo "Stopping lnd..."
systemctl stop lnd sudo systemctl stop lnd
sleep 5 sleep 5
echo "OK" echo "OK"
echo echo