gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-deployment] branch master updated: Generate Sandbox admin passwor


From: gnunet
Subject: [taler-deployment] branch master updated: Generate Sandbox admin password, store in file, and load in env.
Date: Fri, 17 Sep 2021 16:34:32 +0200

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository deployment.

The following commit(s) were added to refs/heads/master by this push:
     new d62c574  Generate Sandbox admin password, store in file, and load in 
env.
d62c574 is described below

commit d62c574bea9f6738f8db21c6dde7253a25be684c
Author: ms <ms@taler.net>
AuthorDate: Fri Sep 17 16:31:41 2021 +0200

    Generate Sandbox admin password, store in file, and load in env.
    
    That is only needed when euFin is being configured to
    operate with Taler, because the deployment script needs
    to create three bank accounts at the Sandbox.
---
 bin/taler-deployment | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/bin/taler-deployment b/bin/taler-deployment
index e2fe9d9..4f111df 100755
--- a/bin/taler-deployment
+++ b/bin/taler-deployment
@@ -54,6 +54,7 @@ export TALER_ENV_URL_SYNC="{sync}"
 export TALER_ENV_MERCHANT_BACKEND="{merchant_backend}"
 export TALER_COVERAGE={coverage}
 export TALER_ENV_FRONTENDS_APITOKEN="$(cat ~/merchant_auth_token)"
+export LIBEUFIN_ENV_SANDBOX_ADMIN_PASSWORD="$(cat ~/libeufin_admin_password)"
 export LIBEUFIN_NEXUS_DB_CONNECTION="jdbc:sqlite:$HOME/nexus.sqlite"
 export LIBEUFIN_SANDBOX_DB_CONNECTION="jdbc:sqlite:$HOME/sandbox.sqlite"
 """
@@ -701,6 +702,12 @@ def bootstrap() -> None:
             f.write(generate_apitoken())
             print(f"Token file '{token_file}' created.")
 
+    sandbox_admin_password_file = Path.home() / "libeufin_admin_password"
+    if not sandbox_admin_password_file.is_file():
+        with sandbox_admin_password_file.open("w") as f:
+            f.write(generate_apitoken())
+            print(f"Libeufin Sandbox admin password file 
'{sandbox_admin_password_file}' created.")
+
     with (home / "activate").open("w") as f:
         f.write(
             activate_template.format(

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]