From df5c1ddcf8fdb093731d0ed5c63786c7eaa6e0da Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Wed, 28 Apr 2021 21:12:57 -0500 Subject: [PATCH] Fix issue with regen lnd cert and tor addresses --- rootfs/standard/etc/systemd/system/bitcoin.service | 1 + rootfs/standard/etc/systemd/system/lnd.service | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/rootfs/standard/etc/systemd/system/bitcoin.service b/rootfs/standard/etc/systemd/system/bitcoin.service index 16a1a2c0..35d045f1 100644 --- a/rootfs/standard/etc/systemd/system/bitcoin.service +++ b/rootfs/standard/etc/systemd/system/bitcoin.service @@ -9,6 +9,7 @@ After=network.target mynode.service ExecStartPre=/usr/bin/is_not_shutting_down.sh ExecStartPre=/usr/bin/wait_on_uploader.sh ExecStartPre=/bin/sh -c 'cat /mnt/hdd/mynode/quicksync/.quicksync_complete' +ExecStartPre=+/usr/bin/mynode_gen_bitcoin_config.sh EnvironmentFile=/mnt/hdd/mynode/bitcoin/env ExecStart=/usr/local/bin/bitcoind -daemon $BTCARGS -deprecatedrpc=accounts -par=-1 -conf=/home/bitcoin/.bitcoin/bitcoin.conf -printtoconsole -pid=/home/bitcoin/.bitcoin/bitcoin.pid ExecStartPost=+/usr/bin/mynode_post_bitcoin.sh diff --git a/rootfs/standard/etc/systemd/system/lnd.service b/rootfs/standard/etc/systemd/system/lnd.service index 97a461ac..8a0e44ae 100644 --- a/rootfs/standard/etc/systemd/system/lnd.service +++ b/rootfs/standard/etc/systemd/system/lnd.service @@ -10,7 +10,7 @@ After=bitcoin.service ExecStartPre=/usr/bin/is_not_shutting_down.sh ExecStartPre=/usr/bin/pre_lnd.sh ExecStartPre=/usr/bin/wait_on_bitcoin.sh -ExecStartPre=/usr/bin/mynode_gen_lnd_config.sh +ExecStartPre=+/usr/bin/mynode_gen_lnd_config.sh ExecStart=/usr/local/bin/lnd ExecStartPost=/bin/echo 'abc' > /mnt/hdd/mynode/lnd/data/chain/bitcoin/mainnet/poke_login