mirror of
https://github.com/runcitadel/core.git
synced 2024-12-27 23:25:41 +00:00
fix APP_DOMAIN env var containing line-break (#16)
This commit is contained in:
parent
4df838147b
commit
f64f1aab0f
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue
Block a user