diff options
author | tnut <thierryn1 at hispeed dot ch> | 2010-01-20 23:05:39 +0100 |
---|---|---|
committer | tnut <thierryn1 at hispeed dot ch> | 2010-01-20 23:05:39 +0100 |
commit | 6ce71a82340a8aa3bdc5efde7e7207d2bb32f3d6 (patch) | |
tree | d75ad08c76629efd4c73170858e7126eaf4c6a9d /extra/postgresql/post-install | |
parent | d454578d4c83c311e1f1ef393100586b8620d8da (diff) | |
download | nutyx-pakxe-6ce71a82340a8aa3bdc5efde7e7207d2bb32f3d6.tar.gz nutyx-pakxe-6ce71a82340a8aa3bdc5efde7e7207d2bb32f3d6.tar.bz2 nutyx-pakxe-6ce71a82340a8aa3bdc5efde7e7207d2bb32f3d6.tar.xz nutyx-pakxe-6ce71a82340a8aa3bdc5efde7e7207d2bb32f3d6.zip |
Maj de postgresql#8.4.2-1
Diffstat (limited to 'extra/postgresql/post-install')
-rw-r--r-- | extra/postgresql/post-install | 12 |
1 files changed, 12 insertions, 0 deletions
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 &' + |