From 7135f04fa2a0da691374e8ccc4832542767b91c3 Mon Sep 17 00:00:00 2001 From: Haruue Icymoon Date: Sat, 16 Sep 2023 21:32:50 +0800 Subject: [PATCH] chore(scripts): use WorkingDirectory=~ as introduced in systemd v227 [1], all modern linux distro should support this now. [1]: https://github.com/systemd/systemd/commit/5f5d8eab1f2f5f5e088bc301533b3e4636de96c7 --- scripts/install_server.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install_server.sh b/scripts/install_server.sh index 372f8a6..170545f 100644 --- a/scripts/install_server.sh +++ b/scripts/install_server.sh @@ -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