aboutsummaryrefslogtreecommitdiff
path: root/databases/postgresql81-server/pkg-install
diff options
context:
space:
mode:
Diffstat (limited to 'databases/postgresql81-server/pkg-install')
-rw-r--r--databases/postgresql81-server/pkg-install4
1 files changed, 4 insertions, 0 deletions
diff --git a/databases/postgresql81-server/pkg-install b/databases/postgresql81-server/pkg-install
index edd4f36830d5..cfc983fc2f66 100644
--- a/databases/postgresql81-server/pkg-install
+++ b/databases/postgresql81-server/pkg-install
@@ -37,6 +37,10 @@ PRE-INSTALL)
fi
fi
+ if ! [ -x ~pgsql ] ; then
+ mkdir -p ${DB_DIR}
+ chown pgsql:pgsql ${DB_DIR}
+ fi
;;
esac