summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshizhendong <[email protected]>2023-08-14 15:02:35 +0800
committershizhendong <[email protected]>2023-08-14 15:02:35 +0800
commit05f147fd9fa7885740dad6020065ced898cff734 (patch)
tree29a00ee495d7c6c5862355c5700906c945f78da6
parentb1fcd31b15a7f94c46cb422b91d1284787ab960c (diff)
fix: $OPTION 作为字符串写入 systemd service 文件rel-23.07.02
-rw-r--r--tools/afterinstall.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/afterinstall.sh b/tools/afterinstall.sh
index 36779b8..e595159 100644
--- a/tools/afterinstall.sh
+++ b/tools/afterinstall.sh
@@ -10,7 +10,7 @@ After=network.target
[Service]
WorkingDirectory=/opt/nezha/nz-agent
EnvironmentFile=/opt/nezha/nz-agent/config/config.conf
-ExecStart=/opt/nezha/nz-agent/xjar ${JAVA_EXE} -Dnz-agent.dir=/opt/nezha/nz-agent -jar /opt/nezha/nz-agent/nz-agent.xjar $OPTION
+ExecStart=/opt/nezha/nz-agent/xjar ${JAVA_EXE} -Dnz-agent.dir=/opt/nezha/nz-agent -jar /opt/nezha/nz-agent/nz-agent.xjar \$OPTION
RestartSec=5s
Restart=always
[Install]