From 2bb1275714589411a6f16a257b982efd4a3b076a Mon Sep 17 00:00:00 2001 From: Valentin Date: Fri, 23 Feb 2024 16:04:47 +0100 Subject: [PATCH] mysql_secure_installation correction 2 --- install.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 0f65d34..7a6e86d 100644 --- a/install.sh +++ b/install.sh @@ -98,9 +98,8 @@ if [[ "$answer" == "y" ]]; then echo -e "${PURPLE}${BOLD}Enter the MariaDB root password : ${RESET}" read -s db_root_password echo - mariadb -e "SET PASSWORD FOR root@localhost = PASSWORD('${db_root_password}');FLUSH PRIVILEGES;" - printf "${db_root_password}\n n\n n\n n\n y\n y\n y\n" | mysql_secure_installation - # https://stackoverflow.com/a/57381699 + printf "\n n\n y\n ${db_root_password}\n ${db_root_password}\n y\n y\n y\n y\n" | mysql_secure_installation + # https://stackoverflow.com/a/57381699 but not the same values fi echo -e "${PURPLE}${BOLD}Setup Directus database ? (y/n) ${RESET}"