summaryrefslogtreecommitdiff
path: root/taler-exchange-setup-guide.rst
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-08-06 15:25:13 +0200
committerFlorian Dold <florian@dold.me>2021-08-06 15:25:13 +0200
commit5293c62b066d8106816d2f270876e21056363782 (patch)
treeea33e7dba0a4a38380559e944630dbd307430cf7 /taler-exchange-setup-guide.rst
parentb81436a48000ee581e483c35faccb11f3b68f3a6 (diff)
downloaddocs-5293c62b066d8106816d2f270876e21056363782.tar.gz
docs-5293c62b066d8106816d2f270876e21056363782.tar.bz2
docs-5293c62b066d8106816d2f270876e21056363782.zip
db instruction order
Diffstat (limited to 'taler-exchange-setup-guide.rst')
-rw-r--r--taler-exchange-setup-guide.rst45
1 files changed, 28 insertions, 17 deletions
diff --git a/taler-exchange-setup-guide.rst b/taler-exchange-setup-guide.rst
index a3babeda..af939784 100644
--- a/taler-exchange-setup-guide.rst
+++ b/taler-exchange-setup-guide.rst
@@ -741,7 +741,28 @@ This will create a ``taler-exchange`` database owned by the
``taler-exchange-httpd`` user. We will use that user later to perform
database maintenance operations.
-Next, we need to grant the other accounts limited access:
+
+Assuming the above database setup, the database credentials to configure
+in the configuration file would simply be:
+
+.. code-block:: ini
+ :caption: /etc/taler/secrets/exchange-db.secret.conf
+
+ [exchangedb-postgres]
+ CONFIG=postgres:///taler-exchange
+
+
+If the database is run on a different host, please follow the instructions
+from the Postgres manual for configuring remote access.
+
+After configuring the database credentials, the exchange database needs
+to be initialized with the following command:
+
+.. code-block:: shell-session
+
+ [root@exchange-online]# sudo -u taler-exchange-httpd taler-exchange-dbinit
+
+Finally we need to grant the other accounts limited access:
.. code-block:: shell-session
@@ -763,26 +784,16 @@ Next, we need to grant the other accounts limited access:
message after the execution. This might be avoided by first getting a shell as the taler-exchange-httpd user
and then run the SQL statements.
+.. note::
-Assuming the above database setup, the database credentials to configure
-in the configuration file would simply be:
-
-.. code-block:: ini
- :caption: /etc/taler/secrets/exchange-db.secret.conf
-
- [exchangedb-postgres]
- CONFIG=postgres:///taler-exchange
-
+ The above instructions for changing database permissions only work *after*
+ having initialized the database with ``taler-exchange-dbinit``, as
+ the tables to exist before permissions can be granted on them.
-If the database is run on a different host, please follow the instructions
-from the Postgres manual for configuring remote access.
-
-After configuring the database credentials, the exchange database needs
-to be initialized with the following command:
+..
-.. code-block:: shell-session
+ FIXME: Why don't we grant the permissions to the schema / database then?
- [root@exchange-online]# sudo -u taler-exchange-httpd taler-exchange-dbinit
Offline Signing Setup