forked from Sophia/thelinuxlist
14 lines
369 B
Bash
14 lines
369 B
Bash
#!/bin/bash
|
|
|
|
while [ "$go" != 'y' ] && [ "$go" != 'n' ]; do
|
|
read -p "Would you like to install MariaDB? (y/n) " go
|
|
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
|
|
sudo mysql_secure_installation |