Update 'scripts/mariadbinstall.sh'

This commit is contained in:
Sophia Atkinson 2022-10-20 11:01:17 -07:00
parent 5d5c9d616c
commit 99d69cd267

View File

@ -1,12 +1,21 @@
#!/bin/bash #!/bin/bash
while [ "$go" != 'y' ] && [ "$go" != 'n' ]; do while true
read -p "Would you like to install MariaDB? (y/n) " go do
done read -r -p "Would you like to install MariaDB? [Y/n] " input
if [ "$go" == 'n' ]; then case $input in
exit [yY][eE][sS]|[yY])
fi break
;;
[nN][oO]|[nN])
break
;;
*)
echo "That wasnt an option..."
;;
esac
done
apt update && apt upgrade -y apt update && apt upgrade -y
sudo apt install wget software-properties-common dirmngr ca-certificates apt-transport-https -y sudo apt install wget software-properties-common dirmngr ca-certificates apt-transport-https -y