From 54c9c8e81674941bf399dba467b68219c2093455 Mon Sep 17 00:00:00 2001 From: John Niang Date: Thu, 8 Feb 2024 16:26:08 +0800 Subject: [PATCH] Correct systemd syntax by removing double quotes (#312) This PR removes double quotes in `ExecStart` and changes `spring.config.location` argument into `spring.config.additional-location`. See https://github.com/halo-dev/halo/issues/5259#issuecomment-1931481647 and https://github.com/halo-dev/docs/commit/9166ebe5109183c5bdcd70a2c35089ff47b26450#r138357255 for more. ```release-note None ``` --- docs/getting-started/install/jar-file.md | 4 ++-- .../version-2.12/getting-started/install/jar-file.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/getting-started/install/jar-file.md b/docs/getting-started/install/jar-file.md index acc4b33..691688f 100644 --- a/docs/getting-started/install/jar-file.md +++ b/docs/getting-started/install/jar-file.md @@ -141,7 +141,7 @@ title: 使用 JAR 文件部署 6. 测试运行 Halo ```bash - cd ~/app && java -jar halo.jar --spring.config.location="optional:classpath:/;optional:file:$HOME/.halo2/" + cd ~/app && java -jar halo.jar --spring.config.additional-location=optional:file:$HOME/.halo2/ ``` 7. 如果没有观察到异常日志,即可尝试访问 Halo @@ -188,7 +188,7 @@ title: 使用 JAR 文件部署 [Service] Type=simple User=USER - ExecStart=/usr/bin/java -server -Xms256m -Xmx256m -jar JAR_PATH --spring.config.location="optional:classpath:/;optional:file:/home/halo/.halo2/" + ExecStart=/usr/bin/java -server -Xms256m -Xmx256m -jar JAR_PATH --spring.config.additional-location=optional:file:/home/halo/.halo2/ ExecStop=/bin/kill -s QUIT $MAINPID Restart=always StandOutput=syslog diff --git a/versioned_docs/version-2.12/getting-started/install/jar-file.md b/versioned_docs/version-2.12/getting-started/install/jar-file.md index acc4b33..691688f 100644 --- a/versioned_docs/version-2.12/getting-started/install/jar-file.md +++ b/versioned_docs/version-2.12/getting-started/install/jar-file.md @@ -141,7 +141,7 @@ title: 使用 JAR 文件部署 6. 测试运行 Halo ```bash - cd ~/app && java -jar halo.jar --spring.config.location="optional:classpath:/;optional:file:$HOME/.halo2/" + cd ~/app && java -jar halo.jar --spring.config.additional-location=optional:file:$HOME/.halo2/ ``` 7. 如果没有观察到异常日志,即可尝试访问 Halo @@ -188,7 +188,7 @@ title: 使用 JAR 文件部署 [Service] Type=simple User=USER - ExecStart=/usr/bin/java -server -Xms256m -Xmx256m -jar JAR_PATH --spring.config.location="optional:classpath:/;optional:file:/home/halo/.halo2/" + ExecStart=/usr/bin/java -server -Xms256m -Xmx256m -jar JAR_PATH --spring.config.additional-location=optional:file:/home/halo/.halo2/ ExecStop=/bin/kill -s QUIT $MAINPID Restart=always StandOutput=syslog