Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
Update rc.local to write invoicer and lnd configs
Browse files Browse the repository at this point in the history
  • Loading branch information
nolim1t committed Mar 6, 2020
1 parent 0661130 commit e84c3a6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions stage2/01-sys-tweaks/files/rc.local
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e84c3a6

Please sign in to comment.