curl -O https://dl.gitea.io/gitea/1.12.4/gitea-1.12.4-linux-arm64.xz xz -d gitea-1.12.4-linux-arm64.xzmv gitea-1.12.4-linux-arm64 /usr/local/bin/gitea
chmod +x /usr/local/bin/giteaadduser --system --shell /bin/bash --gecos 'Git Version Control' --group --disabled-password --home /web/git gitmkdir -p /web/git/lib/{custom,data,log}
ln -s /web/git/lib /var/lib/gitea
chown -R git:git /web/git/lib
chmod -R 750 /web/git/lib
mkdir /web/git/etc
ln -s /web/git/etc /etc/gitea
chown root:git /web/git/etc
chmod 770 /web/git/etc/etc/systemd/system/gitea.[Unit] Description=Gitea (Git with a cup of tea) After=syslog.target After=network.target [Service] RestartSec=2s Type=simple User=git Group=git WorkingDirectory=/web/git/lib/ ExecStart=/usr/local/bin/gitea web --config /web/git/etc/app.ini Restart=always Environment=USER=git HOME=/web/git GITEA_WORK_DIR=/web/git/lib [Install] WantedBy=multi-user.target
ln -s /etc/systemd/system/gitea /etc/systemd/system/start-full-system.target.wantssystemctl enable gitea.systemctl daemon-reloadsystemctl start gitea/web/git/etc/app.ini:ROOT_URL = https://wgratz.net/gitea/