Update 'scripts/mariadbinstall.sh'
This commit is contained in:
parent
5d5c9d616c
commit
99d69cd267
|
@ -1,12 +1,21 @@
|
|||
#!/bin/bash
|
||||
|
||||
while [ "$go" != 'y' ] && [ "$go" != 'n' ]; do
|
||||
read -p "Would you like to install MariaDB? (y/n) " go
|
||||
done
|
||||
while true
|
||||
do
|
||||
read -r -p "Would you like to install MariaDB? [Y/n] " input
|
||||
|
||||
if [ "$go" == 'n' ]; then
|
||||
exit
|
||||
fi
|
||||
case $input in
|
||||
[yY][eE][sS]|[yY])
|
||||
break
|
||||
;;
|
||||
[nN][oO]|[nN])
|
||||
break
|
||||
;;
|
||||
*)
|
||||
echo "That wasnt an option..."
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
apt update && apt upgrade -y
|
||||
sudo apt install wget software-properties-common dirmngr ca-certificates apt-transport-https -y
|
||||
|
|
Reference in New Issue
Block a user