Browse Source
Update rc.local to write invoicer and lnd configs
master
0.0.1.8
nolim1t
5 years ago
No known key found for this signature in database
GPG Key ID: F6287B82CC84BCBD
1 changed files with
5 additions and
2 deletions
-
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 |
|
|
tail -1 /home/umbrel/secrets/generated.txt > /home/umbrel/secrets/rpcpass.txt |
|
|
echo "Updating bitcoin.conf" |
|
|
echo "Updating bitcoin.conf" |
|
|
cat /home/umbrel/secrets/rpcauth.txt >> /home/umbrel/bitcoin/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" |
|
|
echo "Enabling defaults for umbrelbox" |
|
|
update-rc.d umbrelbox defaults || exit 1 |
|
|
update-rc.d umbrelbox defaults || exit 1 |
|
|
echo "Enabling startup for umbrel box" |
|
|
echo "Enabling startup for umbrel box" |
|
|