File size: 408 Bytes
2301459
 
f315b0e
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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