diff --git a/scripts/giteainstall.sh b/scripts/giteainstall.sh index d80d4aa..700a33a 100644 --- a/scripts/giteainstall.sh +++ b/scripts/giteainstall.sh @@ -1,6 +1,7 @@ #!/bin/bash sudo systemctl stop gitea +sudo ufw allow 3000 sudo wget -O /usr/local/bin/gitea https://dl.gitea.io/gitea/1.17.3/gitea-1.17.3-linux-amd64 sudo chmod +x /usr/local/bin/gitea sudo adduser --system --shell /bin/bash --gecos 'Git Version Control' --group --disabled-password --home /home/git git @@ -10,7 +11,7 @@ sudo chmod -Rv 750 /var/lib/gitea sudo mkdir -v /etc/gitea sudo chown -Rv root:git /etc/gitea sudo chmod -Rv 770 /etc/gitea -wget -O /etc/systemd/system/gitea.service https://git.oldgate.org/Sophia/thelinuxlist/raw/branch/main/systemd/gitea.service +sudo wget -O /etc/systemd/system/gitea.service https://git.oldgate.org/Sophia/thelinuxlist/raw/branch/main/systemd/gitea.service sudo systemctl enable --now gitea sudo systemctl start gitea sleep 3s