X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=local%2Fpostgresql-role-create;h=25d5cf3ff756f04f61efe05cc365b3d77b07bbc1;hp=e01f0c4ba061670f5be4590c790d8e001d024350;hb=148dbf7db2d83f0e8938925ca496a69b50b2573f;hpb=e2ae547ef85e29f3f9c9dfe31feffdac2653df06 diff --git a/local/postgresql-role-create b/local/postgresql-role-create index e01f0c4..25d5cf3 100755 --- a/local/postgresql-role-create +++ b/local/postgresql-role-create @@ -1,6 +1,6 @@ #!/bin/sh -eux role="$1"; shift -sudo -u postgres psql "$@" -a -f - <<-EOF +sudo -u postgres psql "$@" -a -f - --set ON_ERROR_STOP=1 <<-EOF \set ON_ERROR_STOP on DO LANGUAGE plpgsql \$\$ BEGIN