diff --git a/home.admin/99updateMenu.sh b/home.admin/99updateMenu.sh index 597a62a17..f682c81e2 100755 --- a/home.admin/99updateMenu.sh +++ b/home.admin/99updateMenu.sh @@ -526,27 +526,30 @@ By default a reboot is advised. sleep 8 ;; CUSTOM) - sudo -u admin /home/admin/config.scripts/bitcoin.update.sh custom - whiptail \ - --title " Bitcoin Core update " \ - --yes-button "Reboot" \ - --no-button "Skip Reboot" \ - --yesno \ + if ! sudo -u admin /home/admin/config.scripts/bitcoin.update.sh custom; then + exit 1 + else + whiptail \ + --title " Bitcoin Core update " \ + --yes-button "Reboot" \ + --no-button "Skip Reboot" \ + --yesno \ "OK Bitcoin Core update is done. By default a reboot is advised. - " 9 40 - if [ $? -eq 0 ]; then - clear - echo "# REBOOT .." - sudo /home/admin/config.scripts/blitz.shutdown.sh reboot - sleep 8 - exit 1 - else - echo "# SKIP REBOOT" - echo "# starting the bitcoind.service .." - sudo systemctl start bitcoind - exit 0 + " 9 40 + if [ $? -eq 0 ]; then + clear + echo "# REBOOT .." + sudo /home/admin/config.scripts/blitz.shutdown.sh reboot + sleep 8 + exit 1 + else + echo "# SKIP REBOOT" + echo "# starting the bitcoind.service .." + sudo systemctl start bitcoind + exit 0 + fi fi sleep 8 ;; diff --git a/home.admin/config.scripts/bitcoin.update.sh b/home.admin/config.scripts/bitcoin.update.sh index e376f8071..c751c788d 100755 --- a/home.admin/config.scripts/bitcoin.update.sh +++ b/home.admin/config.scripts/bitcoin.update.sh @@ -240,7 +240,7 @@ if [ "${mode}" = "tested" ] || [ "${mode}" = "reckless" ] || [ "${mode}" = "cust echo "# BUILD FAILED --> the PGP verification failed" echo "# try again or with a different version" echo "# if you want to skip verifying all signatures (and just show them) use the command:" - echo "# /home/admin/config.scripts/bonus.bitcoin.sh custom ${bitcoinVersion:-} skipverify" + echo "# /home/admin/config.scripts/bitcoin.update.sh custom ${bitcoinVersion:-} skipverify" exit 1 fi fi