summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorms <ms@taler.net>2021-12-01 18:15:32 +0100
committerms <ms@taler.net>2021-12-01 18:15:32 +0100
commitfc3f7cc90ac6346b66d75f402393953205f5b1a6 (patch)
tree48527e03438cc6dcd802d5b0c6c6b4770ac29807
parent88b1cb77e098514b5059676559a16b8d8dc78f63 (diff)
downloaddeployment-fc3f7cc90ac6346b66d75f402393953205f5b1a6.tar.gz
deployment-fc3f7cc90ac6346b66d75f402393953205f5b1a6.tar.bz2
deployment-fc3f7cc90ac6346b66d75f402393953205f5b1a6.zip
taler-local: fix scope
-rwxr-xr-xbin/WIP/taler-local7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/WIP/taler-local b/bin/WIP/taler-local
index bdc732d..42baf2a 100755
--- a/bin/WIP/taler-local
+++ b/bin/WIP/taler-local
@@ -680,6 +680,9 @@ def prepare(x_forwarded_host, x_forwarded_proto):
TALER_DATA_DIR = TALER_ROOT_DIR / "data"
TALER_UNIT_FILES_DIR = systemd_user_dir = Path.home() / ".config" / "systemd" / "user"
+ def get_link(path = ""):
+ return x_forwarded_proto + "://" + x_forwarded_host + path
+
def create_tip_reserve():
payto = Command([
"taler-merchant-setup-reserve",
@@ -1058,9 +1061,6 @@ def prepare(x_forwarded_host, x_forwarded_proto):
shutil.rmtree(CFG_OUTDIR)
print(" OK")
- def get_link(path = ""):
- return x_forwarded_proto + "://" + x_forwarded_host + path
-
print_nn("Generate preliminary taler.conf...")
mc = config_main(
"taler.conf",
@@ -1254,6 +1254,7 @@ def prepare(x_forwarded_host, x_forwarded_proto):
print_nn("Launching X-Forwarded-Host port redirect...")
subprocess.run(["systemctl", "--user", "start", "taler-local-port-redirect.service"], check=True)
+ time.sleep(1)
print(" OK")
print_nn("Launching the reverse proxy...")
with open(CFG_OUTDIR / "nginx.conf", "w") as nginx_conf: