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 9166ebe510 (r138357255) for more.

```release-note
None
```
wan92hen-patch-1
John Niang 10 months ago committed by GitHub
parent 2f2e1a6f1a
commit 54c9c8e816
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

@ -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

Loading…
Cancel
Save