mirror of
https://github.com/Ed1s0nZ/CyberStrikeAI.git
synced 2026-07-14 07:57:26 +02:00
Add files via upload
This commit is contained in:
@@ -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 ""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user