mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-24 13:38:11 +00:00
LND Admin Password now matches the myNode PW
This commit is contained in:
parent
eeae60e9c1
commit
e1194cc589
|
@ -11,4 +11,8 @@ echo "$HASH" > /home/bitcoin/.mynode/.hashedpw
|
|||
|
||||
# Change RTL password
|
||||
sed -i "s/rtlPassHashed=.*/rtlPassHashed=$HASH/g" /opt/mynode/RTL/RTL.conf
|
||||
systemctl restart rtl
|
||||
systemctl restart rtl
|
||||
|
||||
# Change LND Admin Password
|
||||
sed -i "s/\"adminPasswordSha256\":.*/\"adminPasswordSha256\": \"$HASH\"/g" /home/bitcoin/.lnd-admin/credentials.json
|
||||
systemctl restart lnd_admin
|
|
@ -124,6 +124,12 @@ if [ -f /home/bitcoin/.mynode/.hashedpw ]; then
|
|||
fi
|
||||
chown bitcoin:bitcoin /opt/mynode/RTL/RTL.conf
|
||||
|
||||
# LND Admin Config
|
||||
if [ ! -f /home/bitcoin/.lnd-admin/credentials.json ]; then
|
||||
cp /usr/share/mynode/lnd_admin_credentials.json /home/bitcoin/.lnd-admin/credentials.json
|
||||
chown bitcoin:bitcoin /home/bitcoin/.lnd-admin/credentials.json
|
||||
fi
|
||||
|
||||
|
||||
# Update files that need RPC password (needed if upgrades overwrite files)
|
||||
PW=$(cat /mnt/hdd/mynode/settings/.btcrpcpw)
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"adminPasswordSha256": "d0b3cba71f725563d316ea3516099328042095d10f4571be25c07f9ce31985a5"
|
||||
}
|
Loading…
Reference in New Issue
Block a user