更新安装脚本

This commit is contained in:
2026-04-08 11:24:16 +08:00
parent dc393e607f
commit 852efaf77c
+4
View File
@@ -11,6 +11,10 @@ echo "正在安装 $APP_NAME..."
echo "编译应用..."
CGO_ENABLED=0 GOOS=linux go build -o $APP_NAME -ldflags="-s -w" main.go
# 先停止服务
sudo systemctl stop $APP_NAME
sudo systemctl disable $APP_NAME
# 创建目录
echo "创建目录..."
sudo mkdir -p $APP_PATH