forked from Sophia/thelinuxlist
Update 'scripts/giteainstall.sh'
This commit is contained in:
parent
7ac376b6e9
commit
31d650c8f2
|
@ -14,5 +14,7 @@ sudo chmod -Rv 770 /etc/gitea
|
||||||
sudo 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 enable --now gitea
|
||||||
sudo systemctl start gitea
|
sudo systemctl start gitea
|
||||||
sleep 3
|
publicipaddress=$(curl -sS --connect-timeout 10 -m 60 https://ipv4.icanhazip.com/)
|
||||||
sudo systemctl status gitea
|
intenalip=$(ip addr | grep -E -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | grep -E -v "^127\.|^255\.|^0\." | head -n 1)
|
||||||
|
echo "Gitea Should be available at http://${intenalip}:3000"
|
||||||
|
echo "Or If you are using a VPS at http://${publicipaddress}:3000"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user