gnunet-svn
[Top][All Lists]
Advanced

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

[taler-deployment] branch master updated (a9302e9 -> 7186bec)


From: gnunet
Subject: [taler-deployment] branch master updated (a9302e9 -> 7186bec)
Date: Wed, 14 Sep 2022 08:46:21 +0200

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

ms pushed a change to branch master
in repository deployment.

    from a9302e9  -update codespell BB
     new 749681c  taler-local: sync
     new 7186bec  taler-gv: sync

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 bin/taler-gv    | 20 +++++++++++++++++++-
 bin/taler-local | 20 +++++++++++++++++++-
 2 files changed, 38 insertions(+), 2 deletions(-)

diff --git a/bin/taler-gv b/bin/taler-gv
index 9b99cd5..9f80abe 100755
--- a/bin/taler-gv
+++ b/bin/taler-gv
@@ -1200,6 +1200,12 @@ def prepare(postgres_db_name):
             cmd = f"{TALER_PREFIX}/bin/taler-merchant-httpd -L DEBUG -c 
{CFG_OUTDIR / 'taler.conf'}",
             env = TALER_UNIT_FILES_DIR / "taler-local-postgres.env" if 
os.environ.get("PGPORT") else None
         ))
+    with open(TALER_UNIT_FILES_DIR / "taler-local-sync.service", "w") as 
sync_unit:
+        sync_unit.write(unit_file_content(
+            description = "Taler Sync",
+            cmd = f"{TALER_PREFIX}/bin/sync-httpd -L DEBUG -c {CFG_OUTDIR / 
'sync.conf'}",
+            env = TALER_UNIT_FILES_DIR / "taler-local-postgres.env" if 
os.environ.get("PGPORT") else None
+        ))
     with open(TALER_UNIT_FILES_DIR / 
"taler-local-merchant-backend-token.service", "w") as merchant_token_unit:
         merchant_token_unit.write(unit_file_content(
             description = "Taler Merchant backend with auth token to allow 
default instance creation.",
@@ -1717,7 +1723,9 @@ def prepare(postgres_db_name):
         wire_method = WIRE_METHOD,
         auth_token=FRONTENDS_API_TOKEN
     )
-
+    print_nn("Stopping the merchant with TALER_MERCHANT_TOKEN into the env...")
+    subprocess.run(["systemctl", "--user", "stop", 
"taler-local-merchant-backend-token.service"], check=True)
+    print(" OK")
     print_nn("Restarting the merchant WITHOUT the auth-token in the env...")
     subprocess.run(["systemctl", "--user", "start", 
"taler-local-merchant-backend.service"], check=True)
     print(" OK")
@@ -1741,6 +1749,15 @@ def prepare(postgres_db_name):
     print_nn("Sleep 2 seconds to let the tip reserve settle...")
     time.sleep(2)
     print(" OK")
+    
+    # Configure Sync.
+    print_nn("Reset and init Sync DB..")
+    Command([
+        f"{TALER_PREFIX}/bin/sync-dbinit",
+        "-c", CFG_OUTDIR / "sync.conf",
+        "--reset"]
+    ).run()
+    print(" OK")
 
 @cli.command()
 def launch():
@@ -1752,6 +1769,7 @@ def launch():
     subprocess.run(["systemctl", "--user", "start", 
"taler-local-exchange-aggregator.service"], check=True)
     subprocess.run(["systemctl", "--user", "start", 
"taler-local-exchange-transfer.service"], check=True)
     subprocess.run(["systemctl", "--user", "start", 
"taler-local-merchant-backend.service"], check=True)
+    subprocess.run(["systemctl", "--user", "start", 
"taler-local-sync.service"], check=True)
     subprocess.run(["systemctl", "--user", "start", 
"taler-local-sandbox.service"], check=True)
     subprocess.run(["systemctl", "--user", "start", 
"taler-local-nexus.service"], check=True)
     subprocess.run(["systemctl", "--user", "start", 
"taler-local-donations.service"], check=True)
diff --git a/bin/taler-local b/bin/taler-local
index 314b2ab..3f77d1a 100755
--- a/bin/taler-local
+++ b/bin/taler-local
@@ -1218,6 +1218,12 @@ def prepare(x_forwarded_host, x_forwarded_proto, 
postgres_db_name):
             cmd = f"{TALER_PREFIX}/bin/taler-merchant-httpd -L DEBUG -c 
{CFG_OUTDIR / 'taler.conf'}",
             env = TALER_UNIT_FILES_DIR / "taler-local-postgres.env" if 
os.environ.get("PGPORT") else None
         ))
+    with open(TALER_UNIT_FILES_DIR / "taler-local-sync.service", "w") as 
sync_unit:
+        sync_unit.write(unit_file_content(
+            description = "Taler Sync",
+            cmd = f"{TALER_PREFIX}/bin/sync-httpd -L DEBUG -c {CFG_OUTDIR / 
'sync.conf'}",
+            env = TALER_UNIT_FILES_DIR / "taler-local-postgres.env" if 
os.environ.get("PGPORT") else None
+        ))
     with open(TALER_UNIT_FILES_DIR / 
"taler-local-merchant-backend-token.service", "w") as merchant_token_unit:
         merchant_token_unit.write(unit_file_content(
             description = "Taler Merchant backend with auth token to allow 
default instance creation.",
@@ -1746,7 +1752,9 @@ def prepare(x_forwarded_host, x_forwarded_proto, 
postgres_db_name):
         wire_method = WIRE_METHOD,
         auth_token=FRONTENDS_API_TOKEN
     )
-
+    print_nn("Stopping the merchant with TALER_MERCHANT_TOKEN into the env...")
+    subprocess.run(["systemctl", "--user", "stop", 
"taler-local-merchant-backend-token.service"], check=True)
+    print(" OK")
     print_nn("Restarting the merchant WITHOUT the auth-token in the env...")
     subprocess.run(["systemctl", "--user", "start", 
"taler-local-merchant-backend.service"], check=True)
     if not is_serving(REV_PROXY_URL + "/merchant-backend/config"):
@@ -1776,6 +1784,15 @@ def prepare(x_forwarded_host, x_forwarded_proto, 
postgres_db_name):
     time.sleep(2)
     print(" OK")
 
+    # Configure Sync.
+    print_nn("Reset and init Sync DB..")
+    Command([
+        f"{TALER_PREFIX}/bin/sync-dbinit",
+        "-c", CFG_OUTDIR / "sync.conf",
+        "--reset"]
+    ).run()
+    print(" OK")
+
 @cli.command()
 def launch():
     subprocess.run(["systemctl", "--user", "start", 
"taler-local-port-redirect.service"], check=True)
@@ -1788,6 +1805,7 @@ def launch():
     subprocess.run(["systemctl", "--user", "start", 
"taler-local-exchange-aggregator.service"], check=True)
     subprocess.run(["systemctl", "--user", "start", 
"taler-local-exchange-transfer.service"], check=True)
     subprocess.run(["systemctl", "--user", "start", 
"taler-local-merchant-backend.service"], check=True)
+    subprocess.run(["systemctl", "--user", "start", 
"taler-local-sync.service"], check=True)
     subprocess.run(["systemctl", "--user", "start", 
"taler-local-sandbox.service"], check=True)
     subprocess.run(["systemctl", "--user", "start", 
"taler-local-nexus.service"], check=True)
     subprocess.run(["systemctl", "--user", "start", 
"taler-local-donations.service"], check=True)

-- 
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]