LND Admin Password now matches the myNode PW

This commit is contained in:
Taylor Helsper 2019-09-13 21:24:56 -05:00
parent eeae60e9c1
commit e1194cc589
3 changed files with 14 additions and 1 deletions

View File

@ -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

View File

@ -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)

View File

@ -0,0 +1,3 @@
{
"adminPasswordSha256": "d0b3cba71f725563d316ea3516099328042095d10f4571be25c07f9ce31985a5"
}