lnd: correct a typo where chmod +x was on the old run script

previous commit shut down lnd but never brought it up.
this update corrects the typo and starts the lnd service.
pull/2/head
alex 2 years ago
parent 9cd0affbd1
commit 1c6ddb1f6a
Signed by: x1ddos
GPG Key ID: 540189B756BF5B12

@ -28,7 +28,7 @@ lnd_svc_install() {
sv start bitcoind || exit 1 sv start bitcoind || exit 1
exec chpst -u lnd $LND_HOME/$LND_VERSION_DIR_AARCH64/lnd -C /home/lnd/lnd.mainnet.conf 2>&1 exec chpst -u lnd $LND_HOME/$LND_VERSION_DIR_AARCH64/lnd -C /home/lnd/lnd.mainnet.conf 2>&1
EOF EOF
chmod +x /etc/sv/lnd/run chmod +x /etc/sv/lnd/run.new
test -f /etc/sv/lnd/run && diff /etc/sv/lnd/run /etc/sv/lnd/run.new test -f /etc/sv/lnd/run && diff /etc/sv/lnd/run /etc/sv/lnd/run.new
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
sv -w 600 stop lnd || printf "ERROR: sv stop lnd failed\n" 1>&2 sv -w 600 stop lnd || printf "ERROR: sv stop lnd failed\n" 1>&2
@ -36,6 +36,9 @@ EOF
sv start lnd || printf "ERROR: sv start lnd failed\n" 1>&2 sv start lnd || printf "ERROR: sv start lnd failed\n" 1>&2
fi fi
rm -f /etc/sv/lnd/run.new rm -f /etc/sv/lnd/run.new
# whatever happened above, try to ensure the service is up
chmod +x /etc/sv/lnd/run
[ ! -f /etc/sv/lnd/down ] && sv start lnd
} }
lnd_cli_install() { lnd_cli_install() {

Loading…
Cancel
Save