provision: Initialize Postgres db on CentOS.

This commit is contained in:
rht
2018-12-14 04:24:18 +00:00
committed by Tim Abbott
parent 41a5f6a49d
commit 8b5a86b992

View File

@@ -241,6 +241,7 @@ def install_apt_deps():
"/usr/bin/%s" % (cmd,))
# Compile tsearch-extras from scratch
run(["sudo", "./scripts/lib/build-tsearch-extras"])
run(["sudo", "-H", "/usr/pgsql-10/bin/postgresql-10-setup", "initdb"])
else:
# setup-apt-repo does an `apt-get update`
run(["sudo", "./scripts/lib/setup-apt-repo"])