From f64f1aab0f49b27a087b6adc693f1da11c8547be Mon Sep 17 00:00:00 2001 From: Philipp Walter Date: Wed, 16 Feb 2022 17:38:26 +0100 Subject: [PATCH] fix APP_DOMAIN env var containing line-break (#16) --- app/lib/manage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/manage.py b/app/lib/manage.py index 4a02f1e..a8e5901 100644 --- a/app/lib/manage.py +++ b/app/lib/manage.py @@ -194,7 +194,7 @@ def compose(app, arguments): composeFile = os.path.join(appsDir, app, "docker-compose.yml") commonComposeFile = os.path.join(appSystemDir, "docker-compose.common.yml") os.environ["APP_DOMAIN"] = subprocess.check_output( - "hostname -s 2>/dev/null || echo 'citadel'", shell=True).decode("utf-8") + ".local" + "hostname -s 2>/dev/null || echo 'citadel'", shell=True).decode("utf-8").strip() + ".local" os.environ["APP_HIDDEN_SERVICE"] = subprocess.check_output("cat {} 2>/dev/null || echo 'notyetset.onion'".format( os.path.join(nodeRoot, "tor", "data", "app-{}/hostname".format(app))), shell=True).decode("utf-8").strip() os.environ["APP_SEED"] = deriveEntropy("app-{}-seed".format(app))