[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: fix new cli
From: |
gnunet |
Subject: |
[libeufin] branch master updated: fix new cli |
Date: |
Fri, 12 Jun 2020 14:52:09 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new d9133fc fix new cli
d9133fc is described below
commit d9133fc1399ebeb9afe4609363ab3b3d3b54d250
Author: MS <ms@taler.net>
AuthorDate: Fri Jun 12 14:51:09 2020 +0200
fix new cli
---
cli/libeufin-cli-new | 4 ++--
cli/setup-template.sh | 23 +++++++++++++----------
2 files changed, 15 insertions(+), 12 deletions(-)
diff --git a/cli/libeufin-cli-new b/cli/libeufin-cli-new
index f7f2dea..985e622 100755
--- a/cli/libeufin-cli-new
+++ b/cli/libeufin-cli-new
@@ -52,9 +52,9 @@ def new_ebics_connection(obj, connection_name, ebics_url,
host_id, partner_id,
source="new",
type="ebics",
data=dict(ebicsURL=ebics_url, hostID=host_id, partnerID=partner_id,
userID=ebics_user_id)
- ),
+ )
try:
- resp = post(url, json=body, auth = auth.HTTPBasicAuth(nexus_user_id,
nexus_password))
+ resp = post(url, json=body, auth=auth.HTTPBasicAuth(nexus_user_id,
nexus_password))
except Exception:
print("Could not reach nexus")
exit(1)
diff --git a/cli/setup-template.sh b/cli/setup-template.sh
index 574c762..bd7c191 100755
--- a/cli/setup-template.sh
+++ b/cli/setup-template.sh
@@ -19,11 +19,14 @@ NEXUS_USER=u
NEXUS_PASSWORD=p
NEXUS_BANK_CONNECTION_NAME=b
+NEXUS_DB=/tmp/n.sqlite3
+SANDBOX_DB=/tmp/s.sqlite3
+
########## setup sandbox #############
-# make ebics host as sandbox
+# make ebics host at sandbox
echo Making a ebics host at the sandbox
-sleep 3
+sleep 2
./libeufin-cli-new \
sandbox \
make-ebics-host \
@@ -32,7 +35,7 @@ sleep 3
# activate a ebics subscriber on that host
echo Activating the ebics subscriber at the sandbox
-sleep 3
+sleep 2
./libeufin-cli-new \
sandbox \
activate-ebics-subscriber \
@@ -54,14 +57,14 @@ echo Giving a bank account to such subscriber
--ebics-host-id=$EBICS_HOST_ID \
--ebics-partner-id=$EBICS_PARTNER_ID \
$SANDBOX_URL
-sleep 3
+sleep 2
########## setup nexus #############
# create a user
-echo Creating a nexus user
-nexus superuser --password $NEXUS_PASSWORD $NEXUS_USER
-sleep 3
+echo "Creating a nexus user (giving time to settle)"
+nexus superuser --db-name=$NEXUS_DB --password $NEXUS_PASSWORD $NEXUS_USER
+sleep 2
# create a bank connection
echo Creating a bank connection for such user
@@ -76,7 +79,7 @@ echo Creating a bank connection for such user
--nexus-user-id $NEXUS_USER \
--nexus-password $NEXUS_PASSWORD \
$NEXUS_URL
-sleep 3
+sleep 2
# Bootstrapping such connection
echo Bootstrapping the bank connection
@@ -87,7 +90,7 @@ echo Bootstrapping the bank connection
--nexus-user-id $NEXUS_USER \
--nexus-password $NEXUS_PASSWORD \
$NEXUS_URL
-sleep 3
+sleep 2
# Fetching the bank accounts
echo Fetching the bank accounts
@@ -98,7 +101,7 @@ echo Fetching the bank accounts
--nexus-user-id $NEXUS_USER \
--nexus-password $NEXUS_PASSWORD \
$NEXUS_URL
-sleep 3
+sleep 2
echo User is setup, history can be requested, and \
new payments can be prepared and submitted.
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: fix new cli,
gnunet <=