From 308bdd79bc443fe3fa856d9280c558e8d15da799 Mon Sep 17 00:00:00 2001 From: sdohuajia <63113882+sdohuajia@users.noreply.github.com> Date: Wed, 9 Oct 2024 19:49:38 +0800 Subject: [PATCH] Update nexus.sh --- nexus.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nexus.sh b/nexus.sh index c4ce21a..82de216 100644 --- a/nexus.sh +++ b/nexus.sh @@ -20,6 +20,10 @@ show_status() { esac } +# 定义服务名称和文件路径 +SERVICE_NAME="nexus" +SERVICE_FILE="/etc/systemd/system/$SERVICE_NAME.service" + # 主菜单函数 function main_menu() { while true; do