commit 58af4722337932376d3a8de06c7d63f2b39bf5bf
parent b9f37ae9abdf7479d1c6d16c602c4d799208e51d
Author: Florian Dold <florian@dold.me>
Date: Mon, 26 Aug 2024 16:31:41 +0200
give auditor DB access
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/scripts/demo/setup-sandcastle.sh b/scripts/demo/setup-sandcastle.sh
@@ -480,6 +480,10 @@ if [[ ! -e /etc/taler/conf.d/$CURRENCY-coins.conf ]]; then
>"/etc/taler/conf.d/$CURRENCY-coins.conf"
fi
+# Add auditor user to DB group *before* running taler-exchange-dbconfig,
+# so that DB permissions are adjusted accordingly.
+usermod taler-auditor-httpd -aG taler-exchange taler-exchange-db
+
echo "Initializing exchange database"
taler-exchange-dbconfig
@@ -508,7 +512,9 @@ sudo -i -u taler-exchange-offline \
systemctl enable --now taler-exchange-offline.timer
+#
# Set up exchange auditor
+#
# We run the offline tooling as root, maybe in the future there should be
# a separate user created by the Debian package for that.