From d62c574bea9f6738f8db21c6dde7253a25be684c Mon Sep 17 00:00:00 2001 From: ms Date: Fri, 17 Sep 2021 16:31:41 +0200 Subject: 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(+) (limited to 'bin/taler-deployment') 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( -- cgit v1.2.3