Skip to content

Commit 1ded80a

Browse files
committed
Merge pull request #42 from infosiftr/env-only-for-link-presense-detection
Use the /etc/hosts entry for connecting to mysql and use the env only to detect the presence of the link
2 parents e7b6b3b + 9aae243 commit 1ded80a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ set_config() {
6464
sed -ri "s/((['\"])$key\2\s*,\s*)(['\"]).*\3/\1$sed_escaped_value/" wp-config.php
6565
}
6666

67-
WORDPRESS_DB_HOST="${MYSQL_PORT_3306_TCP#tcp://}"
67+
WORDPRESS_DB_HOST='mysql'
6868

6969
set_config 'DB_HOST' "$WORDPRESS_DB_HOST"
7070
set_config 'DB_USER' "$WORDPRESS_DB_USER"

0 commit comments

Comments
 (0)