Correction : vm_hosted : rule_postgresql_db_add : permissions.
authorJulien Moutinho <julm+burette@autogeree.net>
Tue, 9 Apr 2013 14:58:51 +0000 (16:58 +0200)
committerJulien Moutinho <julm+burette@autogeree.net>
Tue, 9 Apr 2013 19:52:35 +0000 (21:52 +0200)
vm_hosted

index c1d4608..ff2ade9 100755 (executable)
--- a/vm_hosted
+++ b/vm_hosted
@@ -1331,6 +1331,7 @@ rule_postgresql_db_add () { # SYNTAX: $db $db_user
        sudo -u postgres psql template1 -a -f - <<-EOF
                \set ON_ERROR_STOP on
                GRANT ${db}_role TO $db_user;
+               ALTER USER $db SET search_path to $db;
                REVOKE ALL ON DATABASE $db FROM public;
                EOF
  }