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