Browse Source

Don't overwrite existing LND config after update (#904)

lnd-v0.13.1-beta
Luke Childs 3 years ago
committed by GitHub
parent
commit
cdc0f90008
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      scripts/configure
  2. 1
      scripts/update/.updateinclude

9
scripts/configure

@ -381,11 +381,18 @@ done
mv -f "$NGINX_CONF_FILE" "./nginx/nginx.conf"
mv -f "$BITCOIN_CONF_FILE" "./bitcoin/bitcoin.conf"
mv -f "$LND_CONF_FILE" "./lnd/lnd.conf"
mv -f "$TOR_CONF_FILE" "./tor/torrc"
mv -f "$ELECTRS_CONF_FILE" "./electrs/electrs.toml"
mv -f "$ENV_FILE" "./.env"
# Only write LND config if one doesn't already exist to preserve any user changes.
if [[ -f "./lnd/lnd.conf" ]]; then
echo "Skipping lnd.conf update to preserve user changes..."
rm "$LND_CONF_FILE"
else
mv -f "$LND_CONF_FILE" "./lnd/lnd.conf"
fi
##########################################################
######### Generate hidden services on first run ##########
##########################################################

1
scripts/update/.updateinclude

@ -1,5 +1,4 @@
.env
bitcoin/bitcoin.conf
lnd/lnd.conf
tor/torrc
electrs/electrs.toml

Loading…
Cancel
Save