mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 07:07:46 +01:00
cl.hsmtool: correct passwordfile name everywhere
This commit is contained in:
parent
d575aec130
commit
6cd17ad27a
1 changed files with 4 additions and 4 deletions
|
@ -41,7 +41,7 @@ hsmSecretPath="/home/bitcoin/.lightning/${CLNETWORK}/hsm_secret"
|
|||
passwordFile=/dev/shm/.${netprefix}cl.pw
|
||||
if grep -Eq "${netprefix}clEncryptedHSM=on" /mnt/hdd/raspiblitz.conf;then
|
||||
if grep -Eq "${netprefix}clAutoUnlock=on" /mnt/hdd/raspiblitz.conf;then
|
||||
passwordFile=/home/bitcoin/${netprefix}cl.pw
|
||||
passwordFile=/home/bitcoin/.${netprefix}cl.pw
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@ -103,8 +103,8 @@ function shredPasswordFile() {
|
|||
if [ -f /dev/shm/.${netprefix}cl.pw ];then
|
||||
sudo shred -uvz /dev/shm/.${netprefix}cl.pw
|
||||
fi
|
||||
if [ -f /home/bitcoin/${netprefix}cl.pw ];then
|
||||
sudo shred -uvz /home/bitcoin/${netprefix}cl.pw
|
||||
if [ -f /home/bitcoin/.${netprefix}cl.pw ];then
|
||||
sudo shred -uvz /home/bitcoin/.${netprefix}cl.pw
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -351,7 +351,7 @@ elif [ "$1" = "autounlock-on" ]; then
|
|||
echo "# Autounlock is on for C-lightning $CHAIN"
|
||||
|
||||
elif [ "$1" = "autounlock-off" ]; then
|
||||
if [ -f /home/bitcoin/${netprefix}cl.pw ];then
|
||||
if [ -f /home/bitcoin/.${netprefix}cl.pw ];then
|
||||
sudo cp /home/bitcoin/.${netprefix}cl.pw /dev/shm/.${netprefix}cl.pw
|
||||
sudo shred -uzv /home/bitcoin/.${netprefix}cl.pw
|
||||
sudo chmod 600 /dev/shm/.${netprefix}cl.pw
|
||||
|
|
Loading…
Add table
Reference in a new issue