[__postgres_role] Revert parts of a34060d703

Broken syntax fixed
This commit is contained in:
Darko Poljak 2018-12-05 16:51:37 +01:00
parent 0491b5b8db
commit 45d1037491

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 postgres -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