addgroup git --system adduser git --ingroup git --system --disabled-password
wget 'https://github.com/gogits/gogs/releases/download/v0.5.13/linux_amd64.zip' -O /tmp/gogs_amd64.zip
unzip /tmp/gogs_amd64.zip 'gogs/*' -d /opt rm /tmp/gogs_amd64.zip
chown git:git /opt/gogs -R chmod +x /opt/gogs/gogs
su - git -c /opt/gogs/scripts/start.sh
cp /opt/gogs/scripts/init/debian/gogs /etc/init.d/
/home/gogs
-ról /opt/gogs
-ra a /etc/init.d/gogs
fájlbanupdate-rc.d gogs defaults