From 6ce71a82340a8aa3bdc5efde7e7207d2bb32f3d6 Mon Sep 17 00:00:00 2001 From: tnut Date: Wed, 20 Jan 2010 23:05:39 +0100 Subject: Maj de postgresql#8.4.2-1 --- extra/postgresql/post-install | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 extra/postgresql/post-install (limited to 'extra/postgresql/post-install') diff --git a/extra/postgresql/post-install b/extra/postgresql/post-install new file mode 100644 index 000000000..c0a8a5ee0 --- /dev/null +++ b/extra/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-70-g09d2