Files
tac-aware/docker-run.sh
T
2026-05-03 14:45:25 +02:00

33 lines
722 B
Bash
Executable File

#!/bin/bash
# Start FTS services
# FTS and UI are installed system-wide in Python
# 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=$!
# Wait for FTS to start
sleep 5
# 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