Browse Source

added sudo to stop lnd

v1.1
Christian Rotzoll 6 years ago
parent
commit
eb6fc65381
  1. 3
      home.admin/config.scripts/lnd.rescue.sh

3
home.admin/config.scripts/lnd.rescue.sh

@ -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

Loading…
Cancel
Save