update entrypoint.sh to create config.toml and adjust environment variables in scalable_sync.py
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user