mysql_secure_installation correction 2
This commit is contained in:
parent
2205fca64d
commit
2bb1275714
|
@ -98,9 +98,8 @@ 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
|
||||||
mariadb -e "SET PASSWORD FOR root@localhost = PASSWORD('${db_root_password}');FLUSH PRIVILEGES;"
|
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
|
||||||
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 but not the same values
|
||||||
# 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