rootzoll 6 years ago
parent
commit
9648440e2a
  1. 6
      home.admin/config.scripts/blitz.setpassword.sh
  2. 2
      home.admin/config.scripts/lnd.autounlock.sh

6
home.admin/config.scripts/blitz.setpassword.sh

@ -95,8 +95,14 @@ elif [ "${abcd}" = "c" ]; then
sudo -u bitcoin lncli --chain=${network} --network=${chain}net changepassword sudo -u bitcoin lncli --chain=${network} --network=${chain}net changepassword
# deactivate AUTO-UNLOCK if activated # deactivate AUTO-UNLOCK if activated
echo ""
echo "# Make sure Auto-Unlocks off"
sudo /home/admin/config.scripts/lnd.autounlock.sh off sudo /home/admin/config.scripts/lnd.autounlock.sh off
# final user output
echo ""
echo "OK"
# PASSWORD D # PASSWORD D
elif [ "${abcd}" = "d" ]; then elif [ "${abcd}" = "d" ]; then

2
home.admin/config.scripts/lnd.autounlock.sh

@ -112,7 +112,7 @@ if [ "$1" = "0" ] || [ "$1" = "off" ]; then
sudo sed -i "s/^autoUnlock=.*/autoUnlock=off/g" /mnt/hdd/raspiblitz.conf sudo sed -i "s/^autoUnlock=.*/autoUnlock=off/g" /mnt/hdd/raspiblitz.conf
# delete password C securly # delete password C securly
echo "shredding password on RaspiBlitz" echo "shredding password on for RaspiBlitz Auto-Unlock"
sudo shred -u /root/lnd.autounlock.pwd sudo shred -u /root/lnd.autounlock.pwd
echo "Auto-Unlock is now OFF" echo "Auto-Unlock is now OFF"

Loading…
Cancel
Save