| set -e | |
| echo "[HFOS] Initializing Persistent Storage..." | |
| export SERVER_DIR="/data" | |
| # Create core directories on the persistent drive | |
| mkdir -p "$SERVER_DIR/plugins" "$SERVER_DIR/jars" "$SERVER_DIR/backups" | |
| # Force permissions so Python/Java can write to the mounted volume | |
| chmod -R 777 "$SERVER_DIR" 2>/dev/null || true | |
| echo "[HFOS] Handing over to Python OS Engine..." | |
| exec python3 /app/app.py |