From e3bcca659206e5fafa584d8faa4c3a2f192b3231 Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Thu, 16 Jun 2022 13:17:28 -0500 Subject: [PATCH] Keep tor setting after drive format --- rootfs/standard/usr/bin/mynode_gen_bitcoin_config.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rootfs/standard/usr/bin/mynode_gen_bitcoin_config.sh b/rootfs/standard/usr/bin/mynode_gen_bitcoin_config.sh index 86351b59..f875e1a4 100755 --- a/rootfs/standard/usr/bin/mynode_gen_bitcoin_config.sh +++ b/rootfs/standard/usr/bin/mynode_gen_bitcoin_config.sh @@ -3,8 +3,10 @@ TOTAL_RAM_GB=$(free --giga | grep Mem | awk '{print $2}') # Setup default settings -if [ ! -f /mnt/hdd/mynode/settings/.btc_lnd_tor_enabled_defaulted ]; then +if [ ! -f /mnt/hdd/mynode/settings/.btc_lnd_tor_enabled_defaulted ] && [ ! -f /home/bitcoin/.mynode/.btc_lnd_tor_enabled_defaulted ]; then + touch /home/bitcoin/.mynode/.btc_lnd_tor_enabled_defaulted touch /mnt/hdd/mynode/settings/.btc_lnd_tor_enabled_defaulted + touch /home/bitcoin/.mynode/btc_lnd_tor_enabled touch /mnt/hdd/mynode/settings/btc_lnd_tor_enabled sync fi