space-3 / start.sh
OrbitMC's picture
Update start.sh
f315b0e verified
Raw
History Blame Contribute Delete
408 Bytes
#!/bin/bash
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