updated Gitea version.
This commit is contained in:
parent
2bf73b8a3b
commit
6418a4c975
|
@ -16,7 +16,12 @@ do
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
GITEA_VER="1.18.1"
|
ping -c1 "github.com" &>"/dev/null"
|
||||||
|
|
||||||
|
if [[ "${?}" -ne 0 ]]; then
|
||||||
|
echo "I am unable to access Github.com, that is needed to continue this Install."
|
||||||
|
elif [[ "${#args[@]}" -eq 0 ]]; then
|
||||||
|
GITEA_VER="1.18.2"
|
||||||
sudo systemctl stop gitea
|
sudo systemctl stop gitea
|
||||||
sudo apt-get install git -y
|
sudo apt-get install git -y
|
||||||
sudo wget -O /usr/local/bin/gitea https://github.com/go-gitea/gitea/releases/download/v"$GITEA_VER"/gitea-"$GITEA_VER"-linux-amd64
|
sudo wget -O /usr/local/bin/gitea https://github.com/go-gitea/gitea/releases/download/v"$GITEA_VER"/gitea-"$GITEA_VER"-linux-amd64
|
||||||
|
@ -33,10 +38,10 @@ sudo systemctl daemon-reload
|
||||||
sudo systemctl enable --now gitea
|
sudo systemctl enable --now gitea
|
||||||
sudo systemctl start gitea
|
sudo systemctl start gitea
|
||||||
sudo ufw allow 3000
|
sudo ufw allow 3000
|
||||||
|
|
||||||
echo -e "=================================================================="
|
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 )
|
publicipaddress=$(curl -sS --connect-timeout 10 -m 60 https://ipv4.icanhazip.com/ || curl -sS --connect-timeout 10 -m 60 https://api.ipify.org )
|
||||||
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)
|
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 "Gitea Should be available at http://${intenalip}:3000"
|
||||||
echo "Or If you are using a VPS at http://${publicipaddress}:3000"
|
echo "Or If you are using a VPS at http://${publicipaddress}:3000"
|
||||||
echo -e "=================================================================="
|
echo -e "=================================================================="
|
||||||
|
fi
|
|
@ -15,7 +15,12 @@ do
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
GITEA_VER="1.18.1"
|
ping -c1 "github.com" &>"/dev/null"
|
||||||
|
|
||||||
|
if [[ "${?}" -ne 0 ]]; then
|
||||||
|
echo "I am unable to access Github.com, that is needed to continue this Install."
|
||||||
|
elif [[ "${#args[@]}" -eq 0 ]]; then
|
||||||
|
GITEA_VER="1.18.2"
|
||||||
sudo systemctl stop gitea
|
sudo systemctl stop gitea
|
||||||
sudo wget -O /usr/local/bin/gitea https://github.com/go-gitea/gitea/releases/download/v"$GITEA_VER"/gitea-"$GITEA_VER"-linux-amd64
|
sudo wget -O /usr/local/bin/gitea https://github.com/go-gitea/gitea/releases/download/v"$GITEA_VER"/gitea-"$GITEA_VER"-linux-amd64
|
||||||
sudo chmod +x /usr/local/bin/gitea
|
sudo chmod +x /usr/local/bin/gitea
|
||||||
|
@ -24,5 +29,6 @@ sudo chmod -R 750 /var/lib/gitea
|
||||||
sudo chown -R root:git /etc/gitea
|
sudo chown -R root:git /etc/gitea
|
||||||
sudo chmod -R 770 /etc/gitea
|
sudo chmod -R 770 /etc/gitea
|
||||||
sudo systemctl start gitea
|
sudo systemctl start gitea
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Gitea has been updated!"
|
echo "Gitea has been updated!"
|
|
@ -21,8 +21,8 @@ sudo apt install tzdata curl ca-certificates openssh-server git -y
|
||||||
gpg_key_url="https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey"
|
gpg_key_url="https://packages.gitlab.com/gitlab/gitlab-ce/gpgkey"
|
||||||
curl -fsSL $gpg_key_url| sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/gitlab.gpg
|
curl -fsSL $gpg_key_url| sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/gitlab.gpg
|
||||||
sudo tee /etc/apt/sources.list.d/gitlab_gitlab-ce.list<<EOF
|
sudo tee /etc/apt/sources.list.d/gitlab_gitlab-ce.list<<EOF
|
||||||
deb https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ focal main
|
deb https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ jammy main
|
||||||
deb-src https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ focal main
|
deb-src https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ jammy main
|
||||||
EOF
|
EOF
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install gitlab-ce
|
sudo apt install gitlab-ce
|
||||||
|
|
Reference in New Issue