Fix docker-run.sh with correct paths

This commit is contained in:
dev
2026-05-03 14:45:25 +02:00
parent d506e648dc
commit 294ae08cda
+25 -6
View File
@@ -1,13 +1,32 @@
#!/bin/bash
# Start FTS services
cd /home/fts
# FTS and UI are installed system-wide in Python
# Start the API service
# Create required directories
mkdir -p /home/fts/Logs
mkdir -p /home/fts/FreeTAKServerDataPackageFolder
mkdir -p /home/fts/certs
# Set environment variables for FTS
export FTS_MAINPATH=/home/fts
export FTS_DP_ADDRESS=0.0.0.0
export FTS_USER_ADDRESS=0.0.0.0
export FTS_API_ADDRESS=0.0.0.0
# Start the FTS API service in background
python3 -m FreeTAKServer.controllers.services.FTS &
FTS_PID=$!
# Start the UI
cd /home/fts/FreeTAKServer-UI
python3 run.py &
# Wait for FTS to start
sleep 5
wait
# Start the UI (it's installed as FreeTAKServer-UI package)
cd /home/fts
python3 -m FreeTAKServer_UI.run &
UI_PID=$!
echo "FTS PID: $FTS_PID, UI PID: $UI_PID"
# Wait for both processes
wait $FTS_PID $UI_PID