2022-10-18 22:50:26 -07:00
|
|
|
#!/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
|
2022-10-19 20:35:02 -07:00
|
|
|
sudo mysql_secure_installation
|
|
|
|
|
|
|
|
while [ "$go" != 'y' ] && [ "$go" != 'n' ]; do
|
|
|
|
read -p "Would you also like to install phpMyAdmin? (y/n) " go
|
|
|
|
done
|
|
|
|
|
|
|
|
if [ "$go" == 'n' ]; then
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
wget -O pmainstall.sh https://sop.wtf/sh/pmainstall && bash pmainstall.sh
|