chore(scripts): use WorkingDirectory=~

as introduced in systemd v227 [1], all modern linux distro should
support this now.

[1]: 5f5d8eab1f
This commit is contained in:
Haruue Icymoon 2023-09-16 21:32:50 +08:00
parent 1173252f62
commit 7135f04fa2
No known key found for this signature in database
GPG key ID: F6083B28CBCBC148

View file

@ -677,7 +677,7 @@ After=network.target
[Service]
Type=simple
ExecStart=$EXECUTABLE_INSTALL_PATH server --config ${CONFIG_DIR}/${_config_name}.yaml
WorkingDirectory=$HYSTERIA_HOME_DIR
WorkingDirectory=~
User=$HYSTERIA_USER
Group=$HYSTERIA_USER
Environment=HYSTERIA_LOG_LEVEL=info