#!/bin/sh set -e # Berechtigungen für Volumes setzen (als root) chown -R ${PUID:-1000}:${PGID:-1000} /app/data /tmp/sc-config 2>/dev/null || true chmod 700 /tmp/sc-config 2>/dev/null || true # Auf User wechseln und Python-Skript starten exec gosu appuser python /app/scalable_sync.py "$@"