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}"