fix regex for adding skip-name-resolve

This commit is contained in:
Asif Bacchus 2020-11-28 03:57:23 -07:00
parent 2738255c05
commit 17ba3a6fbf

View File

@ -45,7 +45,7 @@ chown -R mysql:mysql /var/lib/mysql
# skip DNS reverse name resolution if option is set (default)
if [ "$MYSQL_SKIP_NAME_RESOLVE" = 'TRUE' ]; then
sed -i '/^[mysqld]$/a skip-name-resolve' /etc/my.cnf.d/mariadb-server.cnf
sed -i '/^\[mysqld\]$/a skip-name-resolve' /etc/my.cnf.d/mariadb-server.cnf
fi
# execute pre-init scripts: /docker-entrypoint-preinit.d/*.sh