Update 'scripts/giteainstall.sh'
This commit is contained in:
parent
6029f4c509
commit
65214a796e
|
@ -23,6 +23,15 @@ sudo wget -O /etc/systemd/system/gitea.service https://git.oldgate.org/Sophia/th
|
||||||
sudo systemctl enable --now gitea
|
sudo systemctl enable --now gitea
|
||||||
sudo systemctl start gitea
|
sudo systemctl start gitea
|
||||||
|
|
||||||
|
while [ "$go" != 'y' ] && [ "$go" != 'n' ]; do
|
||||||
|
read -p "Would you also like to install MariaDB? (y/n) " go
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ "$go" == 'n' ]; then
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
wget -O mariadbinstall.sh https://sop.wtf/sh/mariadbinstall && bash mariadbinstall.sh
|
||||||
|
|
||||||
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)
|
||||||
|
|
Reference in New Issue
Block a user