mirror of
https://github.com/wassname/docker-postgresql.git
synced 2026-06-28 03:49:45 +08:00
start: fix PSQL_TRUST_LOCALNET enabled check
This commit is contained in:
@@ -32,7 +32,7 @@ cat >> ${PG_CONFDIR}/postgresql.conf <<EOF
|
||||
listen_addresses = '*'
|
||||
EOF
|
||||
|
||||
if [ ${PSQL_TRUST_LOCALNET} = "true" ]; then
|
||||
if [ "${PSQL_TRUST_LOCALNET}" == "true" ]; then
|
||||
echo "Enabling trust samenet in pg_hba.conf..."
|
||||
cat >> ${PG_CONFDIR}/pg_hba.conf <<EOF
|
||||
host all all samenet trust
|
||||
|
||||
Reference in New Issue
Block a user