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:
Sameer Naik
2014-09-04 14:21:43 +05:30
parent a37704e05e
commit e0ce5c7005
+5
View File
@@ -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