mute not needed error msg

This commit is contained in:
rootzoll 2021-07-17 17:23:48 +02:00
parent b918dd6cfa
commit c5b2643294
2 changed files with 2 additions and 2 deletions

View file

@ -386,7 +386,7 @@ if [ "${lightning}" == "cln" ]; then
else
# generate new wallet
source <(sudo /home/admin/config.scripts/cln.hsmtool.sh new-force mainnet "${passwordC}")
source <(sudo /home/admin/config.scripts/cln.hsmtool.sh new-force mainnet ${passwordC})
# check if got new seedwords
if [ "${seedwords}" == "" ] || [ "${seedwords6x4}" == "" ]; then

View file

@ -147,7 +147,7 @@ if [ "$1" = "new" ] || [ "$1" = "new-force" ] || [ "$1" = "seed" ] || [ "$1" = "
# check/delete existing wallet
if [ "$1" = "new-force" ] || [ "$1" = "seed-force" ]; then
echo "# deleting any old wallet ..."
sudo rm $hsmSecretPath
sudo rm $hsmSecretPath 2>/dev/null
else
if sudo ls $hsmSecretPath 2>1 1>/dev/null; then
echo "# The hsm_secret is already present at $hsmSecretPath."