blob: 06666e0f93deb95b1aaf5c3365679eed350b92a0 (
plain) (
tree)
|
|
#!/bin/sh
. `dirname $0`/config-install.sh
prt-get depinst postgresql
cp -R $CONF_DIR/etc/rc.d/postgresql /etc/rc.d/
mkdir /srv/pgsql/
touch /var/log/postgresql
chown postgres:postgres /srv/pgsql /var/log/postgresql
sudo -u postgres initdb -D /srv/pgsql/data
cp $CONF_DIR/srv/pgsql/data/pg_hba.conf /srv/pgsql/data/
chown postgres:postgres /srv/pgsql/data/pg_hba.conf
|