diff options
-rwxr-xr-x | bin/taler-deployment | 6 | ||||
-rwxr-xr-x | bin/taler-deployment-prepare-with-eufin | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/bin/taler-deployment b/bin/taler-deployment index 4f111df..eb7fc15 100755 --- a/bin/taler-deployment +++ b/bin/taler-deployment @@ -104,6 +104,10 @@ currmap = { def generate_apitoken(): return "secret-token:" + ''.join(random.choices(ascii_letters + ascii_uppercase, k=10)) +def generate_password(): + return ''.join(random.choices(ascii_letters + ascii_uppercase, k=10)) + + def update_checkout(r: Repo, p: Path): """Clean the repository's working directory and update it to the match the latest version of the upstream branch @@ -705,7 +709,7 @@ def bootstrap() -> None: 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()) + f.write(generate_password()) print(f"Libeufin Sandbox admin password file '{sandbox_admin_password_file}' created.") with (home / "activate").open("w") as f: diff --git a/bin/taler-deployment-prepare-with-eufin b/bin/taler-deployment-prepare-with-eufin index e5e6fe3..1830312 100755 --- a/bin/taler-deployment-prepare-with-eufin +++ b/bin/taler-deployment-prepare-with-eufin @@ -168,7 +168,8 @@ sleep 5 ## ## Step 4: Set up euFin ## - +export LIBEUFIN_SANDBOX_USERNAME="admin" +export LIBEUFIN_SANDBOX_PASSWORD=${LIBEUFIN_ENV_SANDBOX_ADMIN_PASSWORD} # $1 = ebics user id, $2 = ebics partner, $3 = bank connection name # $4 = bank account name local to Nexus, $5 = bank account name as known # by Sandbox @@ -220,8 +221,7 @@ function prepare_sandbox_account() { NEXUS_URL="http://localhost:5222/" SANDBOX_URL="http://localhost:5111/" -# Deleting old data: - +libeufin-sandbox superuser admin --password=${LIBEUFIN_ENV_SANDBOX_ADMIN_PASSWORD} taler-deployment-arm -i libeufin-nexus taler-deployment-arm -i libeufin-sandbox |