24 lines
571 B
Plaintext
24 lines
571 B
Plaintext
|
# *-*-shell-*-*
|
||
|
#
|
||
|
case ${ACTION} in
|
||
|
post)
|
||
|
cat << _EOF
|
||
|
=====================================================================
|
||
|
|
||
|
Please note that to properly initialize the PostgreSQL server,
|
||
|
a configuration file should be copied to /var/lib/postgresql from
|
||
|
/usr/share/postgresql/postgresql.conf.sample.
|
||
|
|
||
|
To initialize the PostgreSQL data directory, use this:
|
||
|
|
||
|
$ sudo su -l postgres -c initdb -D /var/lib/postgresql/data
|
||
|
|
||
|
To start the server finally use:
|
||
|
|
||
|
$ /etc/init.d/postgresql start
|
||
|
|
||
|
=====================================================================
|
||
|
_EOF
|
||
|
;;
|
||
|
esac
|