diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2023-12-06 19:54:44 +0900 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2023-12-06 19:54:44 +0900 |
commit | 3e106030f1d9462dcf93f539acdfa5860833b152 (patch) | |
tree | 7fa6c3e8def8331d7f54059086fe972d2a4d5b23 /contrib/taler-exchange-dbconfig | |
parent | 576541362e755af6aeab3c5ba4f5ae9cba282c8d (diff) | |
parent | 655366c6a4dbc7e28ebab16f099fbf84f1b73138 (diff) |
merge
Diffstat (limited to 'contrib/taler-exchange-dbconfig')
-rwxr-xr-x | contrib/taler-exchange-dbconfig | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/contrib/taler-exchange-dbconfig b/contrib/taler-exchange-dbconfig index 18fc23bd8..a2187af81 100755 --- a/contrib/taler-exchange-dbconfig +++ b/contrib/taler-exchange-dbconfig @@ -132,7 +132,7 @@ else DO_CREATE=1 fi -if [1 = "$DO_CREATE" ] +if [ 1 = "$DO_CREATE" ] then echo "Creating database '$DBNAME'." 1>&2 @@ -165,10 +165,9 @@ then then echo "Database user '$GROUPIE' already existed. Continuing anyway." 1>&2 fi - sudo -u "$DBUSER" \ - echo -e 'GRANT SELECT,INSERT,UPDATE ON ALL TABLES IN SCHEMA exchange TO "'"$GROUPIE"'";\n' \ - 'GRANT USAGE ON ALL SEQUENCES IN SCHEMA exchange TO "'"$GROUPIE"'";\n' \ - | psql "$DBNAME" + echo -e 'GRANT SELECT,INSERT,UPDATE ON ALL TABLES IN SCHEMA exchange TO "'"$GROUPIE"'";\n' \ + 'GRANT USAGE ON ALL SEQUENCES IN SCHEMA exchange TO "'"$GROUPIE"'";\n' \ + | sudo -u "$DBUSER" psql "$DBNAME" fi done fi |