[__postgres_role] Revert parts of a34060d703

Broken syntax fixed
remotes/origin/4.10
Darko Poljak 6 years ago
parent 0491b5b8db
commit 45d1037491
  1. 4
      cdist/conf/type/__postgres_role/gencode-remote

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

Loading…
Cancel
Save