mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-11-18 18:07:45 +01:00
set password c
This commit is contained in:
@@ -7,6 +7,15 @@ if [ "$1" = "-h" ] || [ "$1" = "-help" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# check if sudo
|
||||||
|
if [ "$EUID" -ne 0 ]
|
||||||
|
then echo "Please run as root (with sudo)"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
# load raspiblitz config (if available)
|
||||||
|
source /mnt/hdd/raspiblitz.conf 2>/dev/null
|
||||||
|
|
||||||
# 1. parameter [?a|b|c|d]
|
# 1. parameter [?a|b|c|d]
|
||||||
abcd=$1
|
abcd=$1
|
||||||
|
|
||||||
@@ -60,7 +69,22 @@ elif [ "${abcd}" = "b" ]; then
|
|||||||
# PASSWORD C
|
# PASSWORD C
|
||||||
elif [ "${abcd}" = "c" ]; then
|
elif [ "${abcd}" = "c" ]; then
|
||||||
|
|
||||||
echo "TODO: Password C"
|
clear
|
||||||
|
echo ""
|
||||||
|
echo "****************************************************************************"
|
||||||
|
echo "Change LND Wallet Password --> lncli changepassword"
|
||||||
|
echo "****************************************************************************"
|
||||||
|
echo "This is your Password C on the RaspiBlitz to unlock your LND wallet."
|
||||||
|
echo "If you had Auto-Unlock active - you need to re-activate after this."
|
||||||
|
echo "To CANCEL use CTRL+C"
|
||||||
|
echo "****************************************************************************"
|
||||||
|
|
||||||
|
# let LND-CLI handle the password change
|
||||||
|
result=$(lncli changepassword)
|
||||||
|
echo "result(${result})"
|
||||||
|
|
||||||
|
# deactivate AUTO-UNLOCK if activated
|
||||||
|
sudo /home/admin/config.scripts/lnd.autounlock.sh off
|
||||||
|
|
||||||
# PASSWORD D
|
# PASSWORD D
|
||||||
elif [ "${abcd}" = "d" ]; then
|
elif [ "${abcd}" = "d" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user