From bd5dcdb2f4d65e241db3672bb2b0328b8003b229 Mon Sep 17 00:00:00 2001 From: Lukas Pierchalla Date: Sun, 20 Sep 2026 12:34:08 +0200 Subject: [PATCH] update entrypoint.sh to fix config.toml creation logic and correct script execution condition --- entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 9ff13bd..9b623ec 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -6,6 +6,7 @@ chown -R ${PUID:-1000}:${PGID:-1000} /app/data 2>/dev/null || true SC_CONF_DIR="${XDG_CONFIG_HOME:-/home/appuser/.config}/scalable-cli" mkdir -p "${SC_CONF_DIR}" chown -R ${PUID:-1000}:${PGID:-1000} "${SC_CONF_DIR}" + if [ ! -f "${SC_CONF_DIR}/config.toml" ]; then cat > "${SC_CONF_DIR}/config.toml" <<'EOF' [auth] @@ -15,7 +16,7 @@ EOF chown ${PUID:-1000}:${PGID:-1000} "${SC_CONF_DIR}/config.toml" fi -if [ "$1" = "python" ] || [ "$1" = "/app/scalable_sync.py\" ]; then +if [ "$1" = "python" ] || [ "$1" = "/app/scalable_sync.py" ]; then shift exec gosu appuser python /app/scalable_sync.py "$@" fi