From a5747ba79659b17e38d17b5afa64831bcd585b25 Mon Sep 17 00:00:00 2001 From: openoms Date: Wed, 21 Jul 2021 19:43:53 +0100 Subject: [PATCH] cln: correct lightning name in FInalDialog + typo --- home.admin/_provision.setup.sh | 2 +- home.admin/setup.scripts/controlFinalDialog.sh | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/home.admin/_provision.setup.sh b/home.admin/_provision.setup.sh index deea8c9be..d38fd469b 100755 --- a/home.admin/_provision.setup.sh +++ b/home.admin/_provision.setup.sh @@ -386,7 +386,7 @@ if [ "${lightning}" == "cln" ]; then # NEW WALLET else - echo "Generare new CLN wallet ..." >> ${logFile} + echo "Generate new CLN wallet ..." >> ${logFile} # generate new wallet source <(sudo /home/admin/config.scripts/cln.hsmtool.sh new-force mainnet) diff --git a/home.admin/setup.scripts/controlFinalDialog.sh b/home.admin/setup.scripts/controlFinalDialog.sh index f4fc0a4e7..60e251a36 100755 --- a/home.admin/setup.scripts/controlFinalDialog.sh +++ b/home.admin/setup.scripts/controlFinalDialog.sh @@ -11,11 +11,16 @@ source ${SETUPFILE} ############################################ # SHOW SEED WORDS AFTER SETUP +if [ "${lightning}" == "lnd" ]; then + walletName="LND Wallet" +elif [ "${lightning}" == "cln" ]; then + walletName="C-lightning Wallet" +fi if [ "${setupPhase}" == "setup" ] && [ "${seedwords6x4NEW}" != "" ]; then ack=0 while [ ${ack} -eq 0 ] do - whiptail --title "IMPORTANT SEED WORDS - PLEASE WRITE DOWN" --msgbox "LND Wallet got created. Store these numbered words in a safe location:\n\n${seedwords6x4NEW}" 12 76 + whiptail --title "IMPORTANT SEED WORDS - PLEASE WRITE DOWN" --msgbox "${walletName} got created. Store these numbered words in a safe location:\n\n${seedwords6x4NEW}" 12 76 whiptail --title "Please Confirm" --yes-button "Show Again" --no-button "CONTINUE" --yesno " Are you sure that you wrote down the word list?" 8 55 if [ $? -eq 1 ]; then ack=1