diff options
author | MS <ms@taler.net> | 2022-03-11 10:47:47 +0100 |
---|---|---|
committer | MS <ms@taler.net> | 2022-03-11 10:47:47 +0100 |
commit | 7054f12b806674198036c1714cf05d3543d2ded7 (patch) | |
tree | 21ffe784f89ca24a5e7bab9944e199ce55c23495 /bin | |
parent | c70ecc0848918413752bfc5d2b93cdacc2c5ac99 (diff) | |
download | deployment-7054f12b806674198036c1714cf05d3543d2ded7.tar.gz deployment-7054f12b806674198036c1714cf05d3543d2ded7.tar.bz2 deployment-7054f12b806674198036c1714cf05d3543d2ded7.zip |
taler-local: adapt to latest config requirements
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/WIP/taler-local | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/bin/WIP/taler-local b/bin/WIP/taler-local index f385d42..9085997 100755 --- a/bin/WIP/taler-local +++ b/bin/WIP/taler-local @@ -881,6 +881,7 @@ def prepare(x_forwarded_host, x_forwarded_proto, postgres_db_name): rsa_keysize="2048", ): sec = "coin_" + currency + "_" + name + obj.cfg_put(sec, "cipher", "RSA") obj.cfg_put(sec, "value", currency + ":" + value) obj.cfg_put(sec, "duration_withdraw", d_withdraw) obj.cfg_put(sec, "duration_spend", d_spend) @@ -961,6 +962,14 @@ def prepare(x_forwarded_host, x_forwarded_proto, postgres_db_name): str(unix_sockets_dir / "exchange-secmod-eddsa.sock") ) obj.cfg_put( + "taler-exchange-secmod-cs", + "unixpath", + str(unix_sockets_dir / "exchange-secmod-cs.sock") + ) + obj.cfg_put("taler-exchange-secmod-cs", "sm_priv_key", + "${TALER_DATA_HOME}/taler-exchange-secmod-cs/secmod-private-key" + ) + obj.cfg_put( "taler-exchange-secmod-rsa", "unixpath", str(unix_sockets_dir / "exchange-secmod-rsa.sock") @@ -1139,6 +1148,12 @@ def prepare(x_forwarded_host, x_forwarded_proto, postgres_db_name): cmd = f"{TALER_PREFIX}/bin/taler-exchange-transfer -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-exchange-secmod-cs.service", "w") as exchange_cs_unit: + exchange_cs_unit.write(unit_file_content( + description = "Taler Exchange CS security module", + cmd = f"{TALER_PREFIX}/bin/taler-exchange-secmod-cs -L DEBUG -c {CFG_OUTDIR / 'taler.conf'}" + )) + with open(TALER_UNIT_FILES_DIR / "taler-local-exchange-secmod-rsa.service", "w") as exchange_rsa_unit: exchange_rsa_unit.write(unit_file_content( description = "Taler Exchange RSA security module", @@ -1321,6 +1336,9 @@ def prepare(x_forwarded_host, x_forwarded_proto, postgres_db_name): print_nn("Launching the exchange EDDSA helper...") subprocess.run(["systemctl", "--user", "start", "taler-local-exchange-secmod-eddsa.service"]) print(" OK") + print_nn("Launching the exchange CS helper...") + subprocess.run(["systemctl", "--user", "start", "taler-local-exchange-secmod-cs.service"]) + print(" OK") print_nn("Launching the exchange...") subprocess.run(["systemctl", "--user", "start", "taler-local-exchange-httpd.service"]) if not is_serving(REV_PROXY_URL + "/exchange/"): @@ -1347,6 +1365,7 @@ def prepare(x_forwarded_host, x_forwarded_proto, postgres_db_name): WIRE_METHOD, CURRENCY + ":0.01", CURRENCY + ":0.01", + CURRENCY + ":0.01", "upload" ], custom_name="set-wire-fee" |