Skip to content

Latest commit

 

History

History
47 lines (40 loc) · 878 Bytes

gitea.md

File metadata and controls

47 lines (40 loc) · 878 Bytes

Git server with web frontend

https://gitea.com/

create service user

adduser --system --shell /bin/bash --gecos 'Git Version Control' --group --disabled-password --home /home/git git

sudo mkdir /gitea
sudo chown git:samuel -R /gitea
sudo chmod 775 -R /gitea

install service

cd /gitea
wget -O gitea https://dl.gitea.io/gitea/1.14.6/gitea-1.14.6-linux-arm-6
chmod +x gitea 

create service

cat > /etc/systemd/system/gitea.service<< EOF
[Unit]
Description=Gitea (Git with a cup of tea)
After=syslog.target
After=network.target
 
[Service]
RestartSec=2s
Type=simple
User=git
Group=samuel
WorkingDirectory=/gitea
ExecStart=/gitea/gitea web
Restart=always
Environment=USER=git HOME=/home/git GITEA_WORK_DIR=/gitea
 
[Install]
WantedBy=multi-user.target
EOF

enable and start gitea service

systemctl enable gitea
systemctl restart gitea