Moved UFW down as a last step

This commit is contained in:
Sophia Atkinson 2023-01-16 20:41:13 -08:00
parent b17540254a
commit 4c5d16ab18
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,6 @@ done
GITEA_VER="1.18.0"
sudo systemctl stop gitea
sudo apt-get install git -y
sudo ufw allow 3000
sudo wget -O /usr/local/bin/gitea https://dl.gitea.io/gitea/$GITEA_VER/gitea-"$GITEA_VER"-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
@ -33,6 +32,7 @@ sudo wget -O /etc/systemd/system/gitea.service https://git.oldgate.org/Sophia/th
sudo systemctl daemon-reload
sudo systemctl enable --now gitea
sudo systemctl start gitea
sudo ufw allow 3000
echo -e "=================================================================="
publicipaddress=$(curl -sS --connect-timeout 10 -m 60 https://ipv4.icanhazip.com/ || curl -sS --connect-timeout 10 -m 60 https://api.ipify.org )