systemd unit: run as "sftpgo" system user

Update the docs too

Fixes #177
This commit is contained in:
Nicola Murino
2020-09-25 18:23:04 +02:00
parent b23276c002
commit 4ebedace1e
4 changed files with 30 additions and 28 deletions

View File

@@ -3,8 +3,8 @@ Description=SFTPGo Server
After=network.target
[Service]
User=root
Group=root
User=sftpgo
Group=sftpgo
Type=simple
WorkingDirectory=/etc/sftpgo
Environment=SFTPGO_CONFIG_DIR=/etc/sftpgo/