mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-20 02:09:15 +01:00
cl.hsmtool: fix password display
This commit is contained in:
parent
e07ad71326
commit
64e0ecd6e7
@ -143,10 +143,10 @@ function decryptHSMsecret() {
|
|||||||
echo "# using the password from parameter"
|
echo "# using the password from parameter"
|
||||||
elif [ -f $passwordFile ];then
|
elif [ -f $passwordFile ];then
|
||||||
echo "# Getting the password from $passwordFile"
|
echo "# Getting the password from $passwordFile"
|
||||||
password=$(cat sudo cat $passwordFile)
|
password=$(sudo cat $passwordFile)
|
||||||
else
|
else
|
||||||
passwordToFile
|
passwordToFile
|
||||||
password=$(cat sudo cat $passwordFile)
|
password=$(sudo cat $passwordFile)
|
||||||
fi
|
fi
|
||||||
if echo "${password}" | sudo -u bitcoin lightning-hsmtool decrypt \
|
if echo "${password}" | sudo -u bitcoin lightning-hsmtool decrypt \
|
||||||
"$hsmSecretPath"; then
|
"$hsmSecretPath"; then
|
||||||
|
Loading…
Reference in New Issue
Block a user