make sure /var/cache/raspiblitz/temp exists #2832

This commit is contained in:
openoms 2022-01-17 20:32:19 +00:00
parent df4f835cb5
commit a5440dd8a0
No known key found for this signature in database
GPG Key ID: 5BFB77609B081B65
3 changed files with 6 additions and 4 deletions

View File

@ -7,7 +7,7 @@ source /mnt/hdd/raspiblitz.conf
source <(/home/admin/config.scripts/network.aliases.sh getvars cl $1)
NETclEncryptedHSM="${netprefix}clEncryptedHSM"
sudo mkdir /var/cache/raspiblitz/temp
# BASIC MENU INFO
WIDTH=64

View File

@ -5,7 +5,9 @@ echo "# get raspiblitz config"
source /home/admin/raspiblitz.info
source /mnt/hdd/raspiblitz.conf
source <(/home/admin/config.scripts/network.aliases.sh getvars lnd $1)
source <(/home/admin/config.scripts/network.aliases.sh getvars lnd "$1")
sudo mkdir /var/cache/raspiblitz/temp
if ! pip list | grep grpc; then sudo -H python3 -m pip install grpcio==1.38.1; fi

View File

@ -368,7 +368,7 @@ elif [ "${abcd}" = "x" ]; then
# second parameter is the flexible text
text=$2
resultFile=$3
shred -u $3 2>/dev/null
shred -u "$3" 2>/dev/null
# ask user for new password (first time)
password1=$(whiptail --passwordbox "\n${text}:\n(min 8chars, 1word, chars+number, no specials)" 10 52 "" --backtitle "RaspiBlitz" 3>&1 1>&2 2>&3)
@ -413,7 +413,7 @@ elif [ "${abcd}" = "x" ]; then
fi
# store result is file
echo "${password1}" > ${resultFile}
echo "${password1}" > "${resultFile}"
elif [ "${abcd}" = "cl" ]; then
/home/admin/config.scripts/cl.hsmtool.sh change-password mainnet