Add custom LND config

This commit is contained in:
Taylor Helsper 2019-10-24 18:58:21 -05:00
parent 37c81fcb54
commit 1cddc60267
2 changed files with 10 additions and 1 deletions

View File

@ -1,6 +1,8 @@
=== v0.1.59 ===
- Add 443 to Tor
- Big fix re SSH key and random PW creation
- SSDs skip QuickSync by default
- Custom LND Config
=== v0.1.58 ===
- Add improved debug info

View File

@ -138,7 +138,7 @@ cp -f /usr/share/mynode/bitcoin.conf /mnt/hdd/mynode/bitcoin/bitcoin.conf
touch /mnt/hdd/mynode/settings/bitcoin_additional_config
echo "" >> /mnt/hdd/mynode/bitcoin/bitcoin.conf
echo "" >> /mnt/hdd/mynode/bitcoin/bitcoin.conf
echo "### CUSTOM CONFIG ###" >> /mnt/hdd/mynode/bitcoin/bitcoin.conf
echo "### CUSTOM BTC CONFIG ###" >> /mnt/hdd/mynode/bitcoin/bitcoin.conf
echo "" >> /mnt/hdd/mynode/bitcoin/bitcoin.conf
cat /mnt/hdd/mynode/settings/bitcoin_additional_config >> /mnt/hdd/mynode/bitcoin/bitcoin.conf
@ -154,6 +154,13 @@ chown admin:admin /home/admin/.bitcoin/bitcoin.conf
# LND Config
cp /usr/share/mynode/lnd.conf /mnt/hdd/mynode/lnd/lnd.conf
touch /mnt/hdd/mynode/settings/lnd_additional_config
echo "" >> /mnt/hdd/mynode/lnd/lnd.conf
echo "" >> /mnt/hdd/mynode/lnd/lnd.conf
echo "### CUSTOM LND CONFIG ###" >> /mnt/hdd/mynode/lnd/lnd.conf
echo "" >> /mnt/hdd/mynode/lnd/lnd.conf
cat /mnt/hdd/mynode/settings/lnd_additional_config >> /mnt/hdd/mynode/lnd/lnd.conf
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