aboutsummaryrefslogtreecommitdiff
path: root/contrib/taler-exchange-dbconfig
diff options
context:
space:
mode:
authorMS <ms@taler.net>2023-12-06 11:32:49 +0100
committerMS <ms@taler.net>2023-12-06 11:32:49 +0100
commit655366c6a4dbc7e28ebab16f099fbf84f1b73138 (patch)
treef65b55940757c23c2500a1ed25b267f1cea691a8 /contrib/taler-exchange-dbconfig
parent1f177319cadb1baa8754c151ff414837f5a0f42c (diff)
invoking sudo on the right command
Diffstat (limited to 'contrib/taler-exchange-dbconfig')
-rwxr-xr-xcontrib/taler-exchange-dbconfig7
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