From 1cc4e8c4a8fc083ee1aa879adc3e890ea1807e11 Mon Sep 17 00:00:00 2001 From: deicidus Date: Fri, 16 Jun 2023 01:42:36 -0700 Subject: [PATCH] added service view menu item --- spells/menu/bitcoin/bitcoin-menu | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spells/menu/bitcoin/bitcoin-menu b/spells/menu/bitcoin/bitcoin-menu index 687700e..11df866 100755 --- a/spells/menu/bitcoin/bitcoin-menu +++ b/spells/menu/bitcoin/bitcoin-menu @@ -18,12 +18,13 @@ display_menu() { install_bitcoin_option="Uninstall Bitcoin%uninstall-bitcoin" if is-service-installed bitcoin; then install_service_option="Uninstall Bitcoin Service%remove-service bitcoin" + service_status_option="View Bitcoin Service Status" if is-bitcoin-running; then bitcoin_server_option="Stop Bitcoin Service%sudo systemctl stop bitcoin" - menu "$title" "$blockchain_info" "$set_config" "$change_directory" "$clear_cache" "$repair_permissions" "$bitcoin_server_option" "$install_service_option" "$install_bitcoin_option" "$exit_option" + menu "$title" "$blockchain_info" "$set_config" "$change_directory" "$clear_cache" "$repair_permissions" "$bitcoin_server_option" "$service_status_option" "$install_service_option" "$install_bitcoin_option" "$exit_option" else bitcoin_server_option="Start Bitcoin Service%sudo systemctl start bitcoin" - menu "$title" "$set_config" "$change_directory" "$clear_cache" "$repair_permissions" "$bitcoin_server_option" "$install_service_option" "$install_bitcoin_option" "$exit_option" + menu "$title" "$set_config" "$change_directory" "$clear_cache" "$repair_permissions" "$bitcoin_server_option" "$install_service_option" "$service_status_option" "$install_bitcoin_option" "$exit_option" fi else script_dir=$(cd -P -- "$(dirname -- "$0")" && pwd -P)