forked from Sophia/thelinuxlist
15 lines
441 B
Bash
15 lines
441 B
Bash
#!/bin/bash
|
|
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
|
|
|
|
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 |