From e33f5ed7c5f0c8c259cb09b71e7f7a5743930134 Mon Sep 17 00:00:00 2001 From: Alexey Pustovalov Date: Wed, 25 Dec 2024 02:14:01 +0900 Subject: [PATCH] Added support for PostgreSQL database socket volume --- Dockerfiles/server-pgsql/alpine/docker-entrypoint.sh | 2 +- Dockerfiles/server-pgsql/centos/docker-entrypoint.sh | 2 +- Dockerfiles/server-pgsql/ol/docker-entrypoint.sh | 2 +- Dockerfiles/server-pgsql/rhel/docker-entrypoint.sh | 2 +- Dockerfiles/server-pgsql/ubuntu/docker-entrypoint.sh | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfiles/server-pgsql/alpine/docker-entrypoint.sh b/Dockerfiles/server-pgsql/alpine/docker-entrypoint.sh index f8cfb4c9c..dad108fef 100755 --- a/Dockerfiles/server-pgsql/alpine/docker-entrypoint.sh +++ b/Dockerfiles/server-pgsql/alpine/docker-entrypoint.sh @@ -185,7 +185,7 @@ check_variables_postgresql() { check_db_connect_postgresql() { echo "********************" - if [[ "$DB_SERVER_HOST" != '""' ]]; then + if [ -n "${DB_SERVER_HOST}" ]; then echo "* DB_SERVER_HOST: ${DB_SERVER_HOST}" echo "* DB_SERVER_PORT: ${DB_SERVER_PORT}" else diff --git a/Dockerfiles/server-pgsql/centos/docker-entrypoint.sh b/Dockerfiles/server-pgsql/centos/docker-entrypoint.sh index f8cfb4c9c..dad108fef 100755 --- a/Dockerfiles/server-pgsql/centos/docker-entrypoint.sh +++ b/Dockerfiles/server-pgsql/centos/docker-entrypoint.sh @@ -185,7 +185,7 @@ check_variables_postgresql() { check_db_connect_postgresql() { echo "********************" - if [[ "$DB_SERVER_HOST" != '""' ]]; then + if [ -n "${DB_SERVER_HOST}" ]; then echo "* DB_SERVER_HOST: ${DB_SERVER_HOST}" echo "* DB_SERVER_PORT: ${DB_SERVER_PORT}" else diff --git a/Dockerfiles/server-pgsql/ol/docker-entrypoint.sh b/Dockerfiles/server-pgsql/ol/docker-entrypoint.sh index f8cfb4c9c..dad108fef 100755 --- a/Dockerfiles/server-pgsql/ol/docker-entrypoint.sh +++ b/Dockerfiles/server-pgsql/ol/docker-entrypoint.sh @@ -185,7 +185,7 @@ check_variables_postgresql() { check_db_connect_postgresql() { echo "********************" - if [[ "$DB_SERVER_HOST" != '""' ]]; then + if [ -n "${DB_SERVER_HOST}" ]; then echo "* DB_SERVER_HOST: ${DB_SERVER_HOST}" echo "* DB_SERVER_PORT: ${DB_SERVER_PORT}" else diff --git a/Dockerfiles/server-pgsql/rhel/docker-entrypoint.sh b/Dockerfiles/server-pgsql/rhel/docker-entrypoint.sh index f8cfb4c9c..dad108fef 100755 --- a/Dockerfiles/server-pgsql/rhel/docker-entrypoint.sh +++ b/Dockerfiles/server-pgsql/rhel/docker-entrypoint.sh @@ -185,7 +185,7 @@ check_variables_postgresql() { check_db_connect_postgresql() { echo "********************" - if [[ "$DB_SERVER_HOST" != '""' ]]; then + if [ -n "${DB_SERVER_HOST}" ]; then echo "* DB_SERVER_HOST: ${DB_SERVER_HOST}" echo "* DB_SERVER_PORT: ${DB_SERVER_PORT}" else diff --git a/Dockerfiles/server-pgsql/ubuntu/docker-entrypoint.sh b/Dockerfiles/server-pgsql/ubuntu/docker-entrypoint.sh index 6c3aa3c93..d70fe8ffd 100755 --- a/Dockerfiles/server-pgsql/ubuntu/docker-entrypoint.sh +++ b/Dockerfiles/server-pgsql/ubuntu/docker-entrypoint.sh @@ -185,7 +185,7 @@ check_variables_postgresql() { check_db_connect_postgresql() { echo "********************" - if [[ "$DB_SERVER_HOST" != '""' ]]; then + if [ -n "${DB_SERVER_HOST}" ]; then echo "* DB_SERVER_HOST: ${DB_SERVER_HOST}" echo "* DB_SERVER_PORT: ${DB_SERVER_PORT}" else