update entrypoint.sh to create config.toml and adjust environment variables in scalable_sync.py

This commit is contained in:
Lukas Pierchalla
2026-09-20 11:13:23 +02:00
parent 7d6b119953
commit 2e3e5e43cc
3 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ log = logging.getLogger("scalable-sync")
def sc(*args: str, timeout: int = 60) -> dict:
cmd = ["sc"] + list(args)
env = {**os.environ, "HOME": "/home/sync", "SC_CONFIG_DIR": str(SC_CONFIG_DIR)}
env = {**os.environ, "HOME": "/home/appuser", "SC_CONFIG_DIR": str(SC_CONFIG_DIR)}
result = subprocess.run(cmd, capture_output=True, text=True, timeout=timeout, env=env)
if result.returncode != 0:
log.error("sc failed: %s", result.stderr)