From 65214a796e8843003d30252bd198d7a355dbdb95 Mon Sep 17 00:00:00 2001 From: Sophia Atkinson Date: Wed, 19 Oct 2022 21:32:22 -0700 Subject: [PATCH] Update 'scripts/giteainstall.sh' --- scripts/giteainstall.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/giteainstall.sh b/scripts/giteainstall.sh index 756b84e..f4cf32b 100644 --- a/scripts/giteainstall.sh +++ b/scripts/giteainstall.sh @@ -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 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 "==================================================================" 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)