create the /var/lib/postgresql directory at start

This commit is contained in:
Sameer Naik
2014-09-20 09:56:12 +05:30
parent 534854552d
commit c590589aab
+1 -1
View File
@@ -7,8 +7,8 @@ PG_BINDIR="/usr/lib/postgresql/${PG_VERSION}/bin"
PG_DATADIR="/var/lib/postgresql/${PG_VERSION}/main"
# fix permissions and ownership of /var/lib/postgresql
mkdir -p -m 0700 /var/lib/postgresql
chown -R postgres:postgres /var/lib/postgresql
chmod 700 /var/lib/postgresql
# fix permissions and ownership of /run/postgresql
mkdir -p -m 0755 /run/postgresql