mysql : security fix root default password

This commit is contained in:
a-sansara 2016-07-29 10:52:49 +02:00
parent 81c1486c58
commit 20004ea1be
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -11,7 +11,7 @@ if [ ! -d /var/lib/mysql/mysql ]; then
chown -R mysql:mysql /var/lib/mysql
mysql_install_db --user=mysql > /dev/null
if [ ! -z "$MYSQL_ROOT_PASSWORD" ]; then
if [ -z "$MYSQL_ROOT_PASSWORD" ]; then
MYSQL_ROOT_PASSWORD=`pwgen -y -s 18 1`
fi