mirror of
https://github.com/wassname/docker-postgresql.git
synced 2026-07-07 20:28:43 +08:00
make sure /var/run/postgresql has the right permissions
Users should be able mount at volume at /var/run/postgresql so as to expose the postgresql unix socket.
This commit is contained in:
@@ -10,6 +10,11 @@ PG_DATADIR="/var/lib/postgresql/${PG_VERSION}/main"
|
||||
chown -R postgres:postgres /var/lib/postgresql
|
||||
chmod 700 /var/lib/postgresql
|
||||
|
||||
# fix permissions and ownership of /var/run/postgresql
|
||||
chown -R postgres:postgres /var/run/postgresql
|
||||
chmod 775 /var/run/postgresql
|
||||
chmod g+s /var/run/postgresql
|
||||
|
||||
# disable ssl
|
||||
sed 's/ssl = true/#ssl = true/' -i ${PG_CONFDIR}/postgresql.conf
|
||||
|
||||
|
||||
Reference in New Issue
Block a user