Modification: rule_postgresql_configure
[lhc/ateliers.git] / vm_hosted
index 4f305be..fae784e 100755 (executable)
--- a/vm_hosted
+++ b/vm_hosted
@@ -1074,6 +1074,12 @@ rule_postfix_configure () {
  }
 rule_postgresql_configure () {
        rule apt_get_install postgresql-9.1
+       if [ ! -d /var/lib/postgresql/9.1/ ]; then
+           pg_createcluster -u postgres --start 9.1 main
+       fi
+       sudo install -m 660 -o root -g root \
+               "$tool"/etc/postgresql/9.1/main/postgresql.conf \
+               /etc/postgresql/9.1/main/postgresql.conf
        sudo service postgresql restart
  }
 rule_openerp_configure () {