dépôts
/
lhc
/
ateliers.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0aaa913
)
Correction : vm_hosted : rule_postgresql_db_add : permissions.
author
Julien Moutinho
<julm+burette@autogeree.net>
Tue, 9 Apr 2013 14:58:51 +0000
(16:58 +0200)
committer
Julien Moutinho
<julm+burette@autogeree.net>
Tue, 9 Apr 2013 19:52:35 +0000
(21:52 +0200)
vm_hosted
patch
|
blob
|
history
diff --git
a/vm_hosted
b/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
}