diff --git a/home.admin/70initLND.sh b/home.admin/70initLND.sh index 8bcd166..85cc236 100755 --- a/home.admin/70initLND.sh +++ b/home.admin/70initLND.sh @@ -71,7 +71,7 @@ echo "" ###### Start LND echo "*** Starting LND ***" -lndRunning=$(systemctl status lnd.service | grep -c running) +lndRunning=$(systemctl status lnd.service 2>/dev/null | grep -c running) if [ ${lndRunning} -eq 0 ]; then sed -i "5s/.*/Wants=${network}d.service/" ./assets/lnd.service sed -i "6s/.*/After=${network}d.service/" ./assets/lnd.service