fix: use homedir as workdir in systemd unit

as default acme storage is $workdir/acme instead of $homedir/.config/...
This commit is contained in:
Haruue Icymoon 2023-09-04 22:58:06 +08:00
parent 099faa93a4
commit 3eeab8a349
No known key found for this signature in database
GPG key ID: F6083B28CBCBC148

View file

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