mirror of
https://git.coolaj86.com/coolaj86/gitea-installer.sh.git
synced 2024-12-21 22:06:19 +00:00
use /opt/gitea, not /srv/gitea
This commit is contained in:
parent
c85c54f69c
commit
9c90a87915
@ -11,8 +11,8 @@ Just follow these instructions:
|
|||||||
sudo adduser gitea --home /opt/gitea
|
sudo adduser gitea --home /opt/gitea
|
||||||
|
|
||||||
# Make some other potentially useful directories for that user/group
|
# Make some other potentially useful directories for that user/group
|
||||||
sudo mkdir -p /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 /srv/gitea
|
sudo chown -R gitea:gitea /opt/gitea/ /var/log/gitea
|
||||||
|
|
||||||
# Download and install 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
|
sudo wget -O /opt/gitea/gitea https://dl.gitea.io/gitea/1.0.1/gitea-1.0.1-linux-amd64
|
||||||
|
10
dist/etc/systemd/system/gitea.service
vendored
10
dist/etc/systemd/system/gitea.service
vendored
@ -1,7 +1,7 @@
|
|||||||
# Pre-req
|
# Pre-req
|
||||||
# sudo adduser gitea --home /opt/gitea
|
# sudo adduser gitea --home /opt/gitea
|
||||||
# sudo mkdir -p /srv/gitea/ /opt/gitea/ /var/log/gitea
|
# sudo mkdir -p /opt/gitea/ /var/log/gitea
|
||||||
# sudo chown -R gitea:gitea /srv/gitea/ /opt/gitea/ /var/log/gitea
|
# sudo chown -R gitea:gitea /opt/gitea/ /var/log/gitea
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Gitea - Git with a cup of tea. A painless self-hosted Git service.
|
Description=Gitea - Git with a cup of tea. A painless self-hosted Git service.
|
||||||
@ -40,14 +40,14 @@ PrivateDevices=true
|
|||||||
ProtectHome=true
|
ProtectHome=true
|
||||||
# Make /usr, /boot, /etc and possibly some more folders read-only.
|
# Make /usr, /boot, /etc and possibly some more folders read-only.
|
||||||
ProtectSystem=full
|
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.
|
# 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.
|
# This merely retains r/w access rights, it does not add any new.
|
||||||
# Must still be writable on the host!
|
# 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
|
# 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.
|
# The following additional security directives only work with systemd v229 or later.
|
||||||
# They further retrict privileges that can be gained by gitea.
|
# They further retrict privileges that can be gained by gitea.
|
||||||
|
Loading…
Reference in New Issue
Block a user