#!/bin/bash # Entrypoint: Kopiert Default-Konfigdateien ins gemountete cfg-Verzeichnis, # falls sie dort nicht existieren (z.B. bei Erstinstallation auf Unraid). CFG_DIR="/opt/video-konverter/app/cfg" DEFAULTS_DIR="/opt/video-konverter/cfg_defaults" # Alle Default-Dateien kopieren, wenn nicht vorhanden for file in "$DEFAULTS_DIR"/*; do filename=$(basename "$file") if [ ! -f "$CFG_DIR/$filename" ]; then echo "Kopiere Default-Config: $filename" cp "$file" "$CFG_DIR/$filename" fi done # Anwendung starten exec python3 __main__.py