Add 'scripts/mariadbinstall'

This commit is contained in:
Sophia Atkinson 2022-10-18 22:50:26 -07:00
parent f88e6fada7
commit eff721bd4c
1 changed files with 15 additions and 0 deletions

15
scripts/mariadbinstall Normal file
View File

@ -0,0 +1,15 @@
#!/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