From fc0f3fb9d8e2a0d053662c24f43936edd90fe416 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Mon, 30 Aug 2021 21:14:58 +0200 Subject: [PATCH] make LND repair options optional --- home.admin/98repairMenu.sh | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/home.admin/98repairMenu.sh b/home.admin/98repairMenu.sh index cd6e2245a..0aa379c53 100755 --- a/home.admin/98repairMenu.sh +++ b/home.admin/98repairMenu.sh @@ -46,19 +46,20 @@ RaspiBlitz image to your SD card. " 12 40 } -# Basic Options -#OPTIONS=(HARDWARE "Run Hardwaretest" \ -OPTIONS=(SOFTWARE "Run Softwaretest (DebugReport)" \ - BACKUP-LND "Backup your LND data (Rescue-File)" \ - MIGRATION "Migrate Blitz Data to new Hardware" \ - COPY-SOURCE "Copy Blockchain Source Modus" \ - RESET-CHAIN "Delete Blockchain & Re-Download" \ - RESET-LND "Delete LND & start new node/wallet" \ - RESET-HDD "Delete HDD Data but keep Blockchain" \ - RESET-ALL "Delete HDD completely to start fresh" \ - DELETE-ELEC "Delete Electrum Index" \ - DELETE-INDEX "Delete Bitcoin Transaction-Index" - ) +OPTIONS=() +#OPTIONS+=(HARDWARE "Run Hardwaretest") +OPTIONS+=(SOFTWARE "Run Softwaretest (DebugReport)") +if [ "${lightning}" == "lnd" ] || [ "${lnd}" == "on" ]; then + OPTIONS+=(BACKUP-LND "Backup your LND data (Rescue-File)") + OPTIONS+=(RESET-LND "Delete LND & start new node/wallet") +fi +OPTIONS+=(MIGRATION "Migrate Blitz Data to new Hardware") +OPTIONS+=(COPY-SOURCE "Copy Blockchain Source Modus") +OPTIONS+=(RESET-CHAIN "Delete Blockchain & Re-Download") +OPTIONS+=(RESET-HDD "Delete HDD Data but keep Blockchain") +OPTIONS+=(RESET-ALL "Delete HDD completely to start fresh") +OPTIONS=(DELETE-ELEC "Delete Electrum Index") +OPTIONS=(DELETE-INDEX "Delete Bitcoin Transaction-Index") CHOICE=$(whiptail --clear --title "Repair Options" --menu "" 18 62 11 "${OPTIONS[@]}" 2>&1 >/dev/tty)