Permalink
Browse files

Fixed an issue with some specific names

  • Loading branch information...
1 parent 511fdd0 commit be2b49b815dbdabf8fd3b1a723795c6f6345916e @KristianOellegaard KristianOellegaard committed May 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 postgres/manifests/role.pp
View
2 postgres/manifests/role.pp
@@ -21,7 +21,7 @@
present: {
# The createuser command always prompts for the password.
exec { "Create $name postgres role":
- command => "/usr/bin/psql -c \"CREATE USER \"$name\" $passtext \" ",
+ command => "/usr/bin/psql -c \"CREATE USER \\\"$name\\\" $passtext \" ",
user => "postgres",
unless => "/usr/bin/psql -c '\\du' | grep '^ *$name *|'",
require => Package["postgresql"],

0 comments on commit be2b49b

Please sign in to comment.