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

Commit e84c3a6

Browse files
committed
Update rc.local to write invoicer and lnd configs
1 parent 0661130 commit e84c3a6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,11 @@ if [ ! -f /home/umbrel/statuses/service-configured ]; then
3737
tail -1 /home/umbrel/secrets/generated.txt > /home/umbrel/secrets/rpcpass.txt
3838
echo "Updating bitcoin.conf"
3939
cat /home/umbrel/secrets/rpcauth.txt >> /home/umbrel/bitcoin/bitcoin.conf
40-
# TODO: Add rpcuser to LND
41-
40+
# Update RPC Passwords for both LND and INVOICER
41+
RPCPASS=`cat /home/umbrel/secrets/rpcpass.txt`
42+
sed -i "s/RPCPASS/${RPCPASS}/g;" /home/umbrel/invoicer/invoicer.conf
43+
sed -i "s/RPCPASS/${RPCPASS}/g;" /home/umbrel/lnd/lnd.conf
44+
4245
echo "Enabling defaults for umbrelbox"
4346
update-rc.d umbrelbox defaults || exit 1
4447
echo "Enabling startup for umbrel box"

0 commit comments

Comments
 (0)