From 120e208a5a237e0a5a9ca5d805b3e7b56ecf09a0 Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 24 Mar 2022 20:54:15 -0400 Subject: [PATCH] Update mariadb-install.sh --- setup/mariadb-install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/setup/mariadb-install.sh b/setup/mariadb-install.sh index d8cec842..e4985159 100644 --- a/setup/mariadb-install.sh +++ b/setup/mariadb-install.sh @@ -65,11 +65,21 @@ apt-get update >/dev/null apt-get install -y mariadb-server &>/dev/null echo -e "${CM}${CL} \r" +read -r -p "Add Adminer? " prompt +if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]] +then +ADMINER="Y" +else +ADMINER="N" +fi + +if [[ $ADMINER == "Y" ]]; then echo -en "${GN} Installing Adminer... " sudo apt install adminer -y &>/dev/null sudo a2enconf adminer &>/dev/null sudo systemctl reload apache2 &>/dev/null echo -e "${CM}${CL} \r" +fi PASS=$(grep -w "root" /etc/shadow | cut -b6); if [[ $PASS != $ ]]; then