mysql_secure_installation correction
This commit is contained in:
parent
52b1f7d496
commit
2205fca64d
|
@ -98,7 +98,9 @@ if [[ "$answer" == "y" ]]; then
|
||||||
echo -e "${PURPLE}${BOLD}Enter the MariaDB root password : ${RESET}"
|
echo -e "${PURPLE}${BOLD}Enter the MariaDB root password : ${RESET}"
|
||||||
read -s db_root_password
|
read -s db_root_password
|
||||||
echo
|
echo
|
||||||
echo "$db_root_password" | mysql_secure_installation
|
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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "${PURPLE}${BOLD}Setup Directus database ? (y/n) ${RESET}"
|
echo -e "${PURPLE}${BOLD}Setup Directus database ? (y/n) ${RESET}"
|
||||||
|
|
Loading…
Reference in New Issue