Support appending extra config for BTC and LND
This commit is contained in:
parent
e147c37c53
commit
08fb786d5b
|
@ -109,6 +109,15 @@ else
|
||||||
if [ -f /home/bitcoin/.mynode/keep_bitcoin_debug_log ] || [ -f /mnt/hdd/mynode/settings/keep_bitcoin_debug_log ]; then
|
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
|
sed -i "s/shrinkdebugfile=.*/shrinkdebugfile=0/g" /mnt/hdd/mynode/bitcoin/bitcoin.conf
|
||||||
fi
|
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
|
fi
|
||||||
|
|
||||||
PW=$(cat /mnt/hdd/mynode/settings/.btcrpcpw)
|
PW=$(cat /mnt/hdd/mynode/settings/.btcrpcpw)
|
||||||
|
|
|
@ -72,6 +72,16 @@ else
|
||||||
sed -i "s/bitcoin.testnet=.*/bitcoin.testnet=1/g" /mnt/hdd/mynode/lnd/lnd.conf
|
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
|
cat /usr/share/mynode/lnd_testnet.conf >> /mnt/hdd/mynode/lnd/lnd.conf
|
||||||
fi
|
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
|
fi
|
||||||
|
|
||||||
# Append tor domain
|
# Append tor domain
|
||||||
|
@ -84,6 +94,7 @@ if [ -f /var/lib/tor/mynode_lnd/hostname ]; then
|
||||||
echo "" >> /mnt/hdd/mynode/lnd/lnd.conf
|
echo "" >> /mnt/hdd/mynode/lnd/lnd.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Set Alias
|
||||||
ALIAS=$(cat /mnt/hdd/mynode/settings/.lndalias)
|
ALIAS=$(cat /mnt/hdd/mynode/settings/.lndalias)
|
||||||
sed -i "s/alias=.*/alias=$ALIAS/g" /mnt/hdd/mynode/lnd/lnd.conf
|
sed -i "s/alias=.*/alias=$ALIAS/g" /mnt/hdd/mynode/lnd/lnd.conf
|
||||||
chown bitcoin:bitcoin /mnt/hdd/mynode/lnd/lnd.conf
|
chown bitcoin:bitcoin /mnt/hdd/mynode/lnd/lnd.conf
|
Loading…
Reference in New Issue
Block a user