From a57b8503908321011d322f3f641d09fa52e83640 Mon Sep 17 00:00:00 2001 From: piernov Date: Mon, 30 Apr 2012 16:50:36 +0200 Subject: Revert "ts les services dans base ainsi que les dépendances de libgl" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- postgresql/post-install | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 postgresql/post-install (limited to 'postgresql/post-install') diff --git a/postgresql/post-install b/postgresql/post-install new file mode 100644 index 000000000..dd6c07e5b --- /dev/null +++ b/postgresql/post-install @@ -0,0 +1,12 @@ +getent group $newgroup > /dev/null || groupadd -g 41 postgres +getent passwd $newuser > /dev/null || useradd -c "PostgreSQL Server" \ +-g postgres -d /srv/pgsql/data \ + -u 41 postgres +install -v -m700 -d /srv/pgsql/data +chown -v postgres /srv/pgsql/data +chmod 700 /srv/pgsql/data +# su - postgres -c '/usr/bin/initdb -D /srv/pgsql/data' + +# su - postgres -c '/usr/bin/postmaster -D /srv/pgsql/data > \ +# /srv/pgsql/data/logfile 2>&1 &' + -- cgit v1.2.3-54-g00ecf