diff options
author | MS <ms@taler.net> | 2023-12-06 11:32:49 +0100 |
---|---|---|
committer | MS <ms@taler.net> | 2023-12-06 11:32:49 +0100 |
commit | 655366c6a4dbc7e28ebab16f099fbf84f1b73138 (patch) | |
tree | f65b55940757c23c2500a1ed25b267f1cea691a8 | |
parent | 1f177319cadb1baa8754c151ff414837f5a0f42c (diff) |
invoking sudo on the right command
-rwxr-xr-x | contrib/taler-exchange-dbconfig | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/contrib/taler-exchange-dbconfig b/contrib/taler-exchange-dbconfig index 4449ce193..100b1c33b 100755 --- a/contrib/taler-exchange-dbconfig +++ b/contrib/taler-exchange-dbconfig @@ -161,10 +161,9 @@ then do if [ "$GROUPIE" != "$DBUSER" ] then - 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 |