Revert "[__postgres_role] Revert parts of a34060d7035e84ff8f70d1e8d5bded7a1bfd71b3"

This reverts commit c85dfbdb10.
This commit is contained in:
Darko Poljak 2018-12-05 16:41:22 +01:00
parent c85dfbdb10
commit 0491b5b8db
1 changed files with 2 additions and 2 deletions

View File

@ -55,9 +55,9 @@ case "$state_should" in
[ -n "$password" ] && password="PASSWORD '$password'"
cmd="CREATE ROLE $name WITH $password $booleans"
echo "su - '$postgres_user' -c \"psql -c \\\"$cmd\\\"\""
echo "su - '$postgres_user' -c \"psql postgres -c '$cmd'\""
;;
absent)
echo "su - '$postgres_user' -c \"dropuser \\\"$name\\\"\""
echo "su - '$postgres_user' -c \"dropuser '$name'\""
;;
esac