X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=local%2Fpostgresql-role-create;h=25d5cf3ff756f04f61efe05cc365b3d77b07bbc1;hp=e01f0c4ba061670f5be4590c790d8e001d024350;hb=b75d4503ef9c919231c0c02daf5a1ed1e57c73af;hpb=4c57b350e0265cfadb9bbf95cd55ae491ee66820 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