Files
bilive/start.sh
John Howe 625c798087 build: release docker 0.3.0 (#284)
* build: release 0.3.0

* fix: path issue
2025-04-13 19:27:47 +08:00

23 lines
555 B
Bash
Executable File

#!/bin/bash
LOGS_DIR="./logs"
SUBDIRS=("record" "runtime" "scan" "upload")
for subdir in "${SUBDIRS[@]}"; do
FULL_PATH="$LOGS_DIR/$subdir"
if [ ! -d "$FULL_PATH" ]; then
mkdir -p "$FULL_PATH"
echo "Created directory: $FULL_PATH"
else
echo "Directory already exists: $FULL_PATH"
fi
done
# Run the record script
./record.sh
# Start the scan process in the background
nohup python -m src.burn.scan > ./logs/runtime/scan-$(date +%Y%m%d-%H%M%S).log 2>&1 &
# Start the upload process
exec python -m src.upload.upload