taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit fc3f7cc90ac6346b66d75f402393953205f5b1a6
parent 88b1cb77e098514b5059676559a16b8d8dc78f63
Author: ms <ms@taler.net>
Date:   Wed,  1 Dec 2021 18:15:32 +0100

taler-local: fix scope

Diffstat:
Mbin/WIP/taler-local | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git 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: