Browse Source

Update rc.local to write invoicer and lnd configs

master 0.0.1.8
nolim1t 5 years ago
parent
commit
e84c3a69ca
No known key found for this signature in database GPG Key ID: F6287B82CC84BCBD
  1. 7
      stage2/01-sys-tweaks/files/rc.local

7
stage2/01-sys-tweaks/files/rc.local

@ -37,8 +37,11 @@ if [ ! -f /home/umbrel/statuses/service-configured ]; then
tail -1 /home/umbrel/secrets/generated.txt > /home/umbrel/secrets/rpcpass.txt
echo "Updating bitcoin.conf"
cat /home/umbrel/secrets/rpcauth.txt >> /home/umbrel/bitcoin/bitcoin.conf
# TODO: Add rpcuser to LND
# Update RPC Passwords for both LND and INVOICER
RPCPASS=`cat /home/umbrel/secrets/rpcpass.txt`
sed -i "s/RPCPASS/${RPCPASS}/g;" /home/umbrel/invoicer/invoicer.conf
sed -i "s/RPCPASS/${RPCPASS}/g;" /home/umbrel/lnd/lnd.conf
echo "Enabling defaults for umbrelbox"
update-rc.d umbrelbox defaults || exit 1
echo "Enabling startup for umbrel box"

Loading…
Cancel
Save