From 17ba3a6fbff1076c07a627a2c9d48f87909f1635 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Sat, 28 Nov 2020 03:57:23 -0700 Subject: [PATCH] fix regex for adding skip-name-resolve --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index e67aa9a..cd72636 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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