diff --git a/rootfs/standard/usr/bin/mynode_gen_bitcoin_config.sh b/rootfs/standard/usr/bin/mynode_gen_bitcoin_config.sh index 3ace07ce..ea3b1d17 100755 --- a/rootfs/standard/usr/bin/mynode_gen_bitcoin_config.sh +++ b/rootfs/standard/usr/bin/mynode_gen_bitcoin_config.sh @@ -109,6 +109,15 @@ else if [ -f /home/bitcoin/.mynode/keep_bitcoin_debug_log ] || [ -f /mnt/hdd/mynode/settings/keep_bitcoin_debug_log ]; then sed -i "s/shrinkdebugfile=.*/shrinkdebugfile=0/g" /mnt/hdd/mynode/bitcoin/bitcoin.conf fi + + # Append "extra" config + if [ -f /mnt/hdd/mynode/settings/bitcoin_extra_config.conf ]; then + echo "" >> /mnt/hdd/mynode/bitcoin/bitcoin.conf + echo "# Extra BTC Config" >> /mnt/hdd/mynode/bitcoin/bitcoin.conf + echo "" >> /mnt/hdd/mynode/bitcoin/bitcoin.conf + cat /mnt/hdd/mynode/settings/bitcoin_extra_config.conf >> /mnt/hdd/mynode/bitcoin/bitcoin.conf + echo "" >> /mnt/hdd/mynode/bitcoin/bitcoin.conf + fi fi PW=$(cat /mnt/hdd/mynode/settings/.btcrpcpw) diff --git a/rootfs/standard/usr/bin/mynode_gen_lnd_config.sh b/rootfs/standard/usr/bin/mynode_gen_lnd_config.sh index 9f7fb83e..84281c60 100755 --- a/rootfs/standard/usr/bin/mynode_gen_lnd_config.sh +++ b/rootfs/standard/usr/bin/mynode_gen_lnd_config.sh @@ -72,6 +72,16 @@ else sed -i "s/bitcoin.testnet=.*/bitcoin.testnet=1/g" /mnt/hdd/mynode/lnd/lnd.conf cat /usr/share/mynode/lnd_testnet.conf >> /mnt/hdd/mynode/lnd/lnd.conf fi + + # Append "extra" config + if [ -f /mnt/hdd/mynode/settings/lnd_extra_config.conf ]; then + echo "" >> /mnt/hdd/mynode/lnd/lnd.conf + echo "# Extra LND Config" >> /mnt/hdd/mynode/lnd/lnd.conf + echo "[Application Options]" >> /mnt/hdd/mynode/lnd/lnd.conf + echo "" >> /mnt/hdd/mynode/lnd/lnd.conf + cat /mnt/hdd/mynode/settings/lnd_extra_config.conf >> /mnt/hdd/mynode/lnd/lnd.conf + echo "" >> /mnt/hdd/mynode/lnd/lnd.conf + fi fi # Append tor domain @@ -84,6 +94,7 @@ if [ -f /var/lib/tor/mynode_lnd/hostname ]; then echo "" >> /mnt/hdd/mynode/lnd/lnd.conf fi +# Set Alias ALIAS=$(cat /mnt/hdd/mynode/settings/.lndalias) sed -i "s/alias=.*/alias=$ALIAS/g" /mnt/hdd/mynode/lnd/lnd.conf chown bitcoin:bitcoin /mnt/hdd/mynode/lnd/lnd.conf \ No newline at end of file