use /opt/gitea, not /srv/gitea

This commit is contained in:
AJ ONeal 2017-10-25 17:33:34 -06:00
parent c85c54f69c
commit 9c90a87915
2 changed files with 7 additions and 7 deletions

View File

@ -11,8 +11,8 @@ Just follow these instructions:
sudo adduser gitea --home /opt/gitea
# Make some other potentially useful directories for that user/group
sudo mkdir -p /opt/gitea/ /var/log/gitea /srv/gitea
sudo chown -R gitea:gitea /opt/gitea/ /var/log/gitea /srv/gitea
sudo mkdir -p /opt/gitea/ /var/log/gitea
sudo chown -R gitea:gitea /opt/gitea/ /var/log/gitea
# Download and install gitea
sudo wget -O /opt/gitea/gitea https://dl.gitea.io/gitea/1.0.1/gitea-1.0.1-linux-amd64

View File

@ -1,7 +1,7 @@
# Pre-req
# sudo adduser gitea --home /opt/gitea
# sudo mkdir -p /srv/gitea/ /opt/gitea/ /var/log/gitea
# sudo chown -R gitea:gitea /srv/gitea/ /opt/gitea/ /var/log/gitea
# sudo mkdir -p /opt/gitea/ /var/log/gitea
# sudo chown -R gitea:gitea /opt/gitea/ /var/log/gitea
[Unit]
Description=Gitea - Git with a cup of tea. A painless self-hosted Git service.
@ -40,14 +40,14 @@ PrivateDevices=true
ProtectHome=true
# Make /usr, /boot, /etc and possibly some more folders read-only.
ProtectSystem=full
# ... except /srv/gitea because we want a place for the database
# ... except /opt/gitea because we want a place for the database
# and /var/log/gitea because we want a place where logs can go.
# This merely retains r/w access rights, it does not add any new.
# Must still be writable on the host!
ReadWriteDirectories=/srv/gitea /opt/gitea /var/log/gitea
ReadWriteDirectories=/opt/gitea /var/log/gitea
# Note: in v231 and above ReadWritePaths has been renamed to ReadWriteDirectories
; ReadWritePaths=/srv/gitea /opt/gitea /var/log/gitea
; ReadWritePaths=/opt/gitea /var/log/gitea
# The following additional security directives only work with systemd v229 or later.
# They further retrict privileges that can be gained by gitea.