1
0
mirror of https://gitlab.com/packaging/gitea synced 2024-12-18 08:03:29 +00:00

systemd: add GITEA_WORK_DIR, relax EnvironmentFile loader

This commit is contained in:
morph027 2020-06-20 10:16:02 +02:00
parent 24b78505c6
commit 73f653729c
No known key found for this signature in database
GPG Key ID: BF17A54BB873BE58
2 changed files with 7 additions and 2 deletions

View File

@ -6,5 +6,9 @@ getent passwd gitea >/dev/null 2>&1 || adduser \
--gecos 'Gitea' \
--group \
--disabled-password \
--home /home/gitea \
--home /var/lib/gitea \
gitea

if [ ! -d /etc/gitea ]; then
install -d -o gitea -g gitea -m 770 /etc/gitea
fi

View File

@ -10,7 +10,8 @@ Group=gitea
WorkingDirectory=/var/lib/gitea/
ExecStart=/usr/bin/gitea web -c /etc/gitea/app.ini
Restart=always
EnvironmentFile=/etc/default/gitea
Environment="GITEA_WORK_DIR=/var/lib/gitea/"
EnvironmentFile=-/etc/default/gitea

[Install]
WantedBy=multi-user.target