Update 'scripts/mariadbinstall.sh'
This commit is contained in:
parent
5d5c9d616c
commit
99d69cd267
|
@ -1,13 +1,22 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
while [ "$go" != 'y' ] && [ "$go" != 'n' ]; do
|
while true
|
||||||
read -p "Would you like to install MariaDB? (y/n) " go
|
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
|
done
|
||||||
|
|
||||||
if [ "$go" == 'n' ]; then
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
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
|
||||||
sudo apt install mariadb-server mariadb-client -y
|
sudo apt install mariadb-server mariadb-client -y
|
||||||
|
|
Reference in New Issue
Block a user