Add files via upload

This commit is contained in:
公明
2026-07-09 19:24:20 +08:00
committed by GitHub
parent a1201240d4
commit bd80010cda
+6 -7
View File
@@ -82,17 +82,11 @@ echo ""
sleep 1 sleep 1
CONFIG_FILE="$ROOT_DIR/config.yaml" CONFIG_FILE="$ROOT_DIR/config.yaml"
EXAMPLE_CONFIG_FILE="$ROOT_DIR/config.example.yaml"
VENV_DIR="$ROOT_DIR/venv" VENV_DIR="$ROOT_DIR/venv"
REQUIREMENTS_FILE="$ROOT_DIR/requirements.txt" REQUIREMENTS_FILE="$ROOT_DIR/requirements.txt"
BINARY_NAME="cyberstrike-ai" BINARY_NAME="cyberstrike-ai"
# Check config file
if [ ! -f "$CONFIG_FILE" ]; then
error "Config file config.yaml not found"
info "Make sure you run this script from the project root"
exit 1
fi
# Check Python environment # Check Python environment
check_python() { check_python() {
if ! command -v python3 >/dev/null 2>&1; then if ! command -v python3 >/dev/null 2>&1; then
@@ -369,6 +363,11 @@ main() {
# Environment checks # Environment checks
info "Checking runtime environment..." info "Checking runtime environment..."
check_python check_python
if [ ! -f "$CONFIG_FILE" ] && [ ! -f "$EXAMPLE_CONFIG_FILE" ]; then
error "config.yaml not found, and config.example.yaml is missing"
info "The server binary creates config.yaml from config.example.yaml on first start"
exit 1
fi
check_go check_go
echo "" echo ""