mirror of
https://github.com/wassname/docker-postgresql.git
synced 2026-08-06 13:10:48 +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 = '*'
|
listen_addresses = '*'
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
if [ ${PSQL_TRUST_LOCALNET} = "true" ]; then
|
if [ "${PSQL_TRUST_LOCALNET}" == "true" ]; then
|
||||||
echo "Enabling trust samenet in pg_hba.conf..."
|
echo "Enabling trust samenet in pg_hba.conf..."
|
||||||
cat >> ${PG_CONFDIR}/pg_hba.conf <<EOF
|
cat >> ${PG_CONFDIR}/pg_hba.conf <<EOF
|
||||||
host all all samenet trust
|
host all all samenet trust
|
||||||
|
|||||||
Reference in New Issue
Block a user