Add code to update lnbits settings file (commented out)

This commit is contained in:
Taylor Helsper 2023-09-27 21:02:49 -05:00
parent 279237ab63
commit fac821baf0

View File

@ -8,6 +8,14 @@ if [ ! -f /mnt/hdd/mynode/lnbits/.env ]; then
chown bitcoin:bitcoin /mnt/hdd/mynode/lnbits/.env
fi
# Force update of LNBits config file (increment to force new update)
# LNBITS_CONFIG_UPDATE_NUM=1
# if [ ! -f /mnt/hdd/mynode/lnbits/update_config_$LNBITS_CONFIG_UPDATE_NUM ]; then
# cp -f /usr/share/mynode/lnbits.env /mnt/hdd/mynode/lnbits/.env
# chown bitcoin:bitcoin /mnt/hdd/mynode/lnbits/.env
# touch /mnt/hdd/mynode/lnbits/update_config_$LNBITS_CONFIG_UPDATE_NUM
# fi
# Generate hex macaroons
#macaroonAdminHex=$(xxd -ps -u -c 1000 /mnt/hdd/mynode/lnd/data/chain/bitcoin/mainnet/admin.macaroon)