diff --git a/deployment/ids-analytics-aggregator.service b/deployment/ids-analytics-aggregator.service index 1c24c55..8a5efb9 100644 --- a/deployment/ids-analytics-aggregator.service +++ b/deployment/ids-analytics-aggregator.service @@ -10,7 +10,7 @@ WorkingDirectory=/opt/ids/python_ml EnvironmentFile=-/opt/ids/.env # Execute hourly aggregation -ExecStart=/opt/ids/venv/bin/python3 /opt/ids/python_ml/analytics_aggregator.py hourly +ExecStart=/opt/ids/python_ml/venv/bin/python3 /opt/ids/python_ml/analytics_aggregator.py hourly # Logging StandardOutput=journal diff --git a/deployment/run_analytics.sh b/deployment/run_analytics.sh index 0ce568e..f6cdedc 100755 --- a/deployment/run_analytics.sh +++ b/deployment/run_analytics.sh @@ -28,7 +28,7 @@ fi IDS_DIR="/opt/ids" ENV_FILE="$IDS_DIR/.env" SCRIPT="$IDS_DIR/python_ml/analytics_aggregator.py" -VENV="$IDS_DIR/venv/bin/python3" +VENV="$IDS_DIR/python_ml/venv/bin/python3" # Verifica file .env esiste if [ ! -f "$ENV_FILE" ]; then