mirror of
https://github.com/wassname/docker-postgresql.git
synced 2026-08-11 11:17:48 +08:00
removed redundant chown of PG_CONFDIR
This commit is contained in:
@@ -128,9 +128,6 @@ if [[ -n ${PG_OLD_VERSION} ]]; then
|
|||||||
-O "-c config_file=${PG_CONFDIR}/postgresql.conf --hba_file=${PG_CONFDIR}/pg_hba.conf --ident_file=${PG_CONFDIR}/pg_ident.conf" >/dev/null
|
-O "-c config_file=${PG_CONFDIR}/postgresql.conf --hba_file=${PG_CONFDIR}/pg_hba.conf --ident_file=${PG_CONFDIR}/pg_ident.conf" >/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# fix ownership of ${PG_CONFDIR} (may be necessary if USERMAP_* was set)
|
|
||||||
chown -R ${PG_USER}:${PG_USER} ${PG_CONFDIR}
|
|
||||||
|
|
||||||
if [[ ${PSQL_SSLMODE} == disable ]]; then
|
if [[ ${PSQL_SSLMODE} == disable ]]; then
|
||||||
sed 's/ssl = true/#ssl = true/' -i ${PG_CONFDIR}/postgresql.conf
|
sed 's/ssl = true/#ssl = true/' -i ${PG_CONFDIR}/postgresql.conf
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user