From f5cb9891d88ef6ddca65bd0cbfcdcac0c57e96eb Mon Sep 17 00:00:00 2001 From: deicidus Date: Mon, 12 Jun 2023 07:27:38 -0700 Subject: [PATCH] fixed install template path --- spells/menu/bitcoin/bitcoin-menu | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spells/menu/bitcoin/bitcoin-menu b/spells/menu/bitcoin/bitcoin-menu index 6fc7fe0..687700e 100755 --- a/spells/menu/bitcoin/bitcoin-menu +++ b/spells/menu/bitcoin/bitcoin-menu @@ -26,7 +26,8 @@ display_menu() { menu "$title" "$set_config" "$change_directory" "$clear_cache" "$repair_permissions" "$bitcoin_server_option" "$install_service_option" "$install_bitcoin_option" "$exit_option" fi else - install_service_option="Install Bitcoin Service%install-service-template ./bitcoin.service \"BITCOIND=`which bitcoind`\"" + script_dir=$(cd -P -- "$(dirname -- "$0")" && pwd -P) + install_service_option="Install Bitcoin Service%install-service-template $script_dir/bitcoin.service \"BITCOIND=`which bitcoind`\"" menu "$title" "$set_config" "$change_directory" "$clear_cache" "$repair_permissions" "$install_service_option" "$install_bitcoin_option" "$exit_option" fi else