From 4155b0f01f13118d87eb7c29fdfe227837eb29e8 Mon Sep 17 00:00:00 2001 From: marco370 <48531002-marco370@users.noreply.replit.com> Date: Mon, 24 Nov 2025 08:42:51 +0000 Subject: [PATCH] Update script to use correct virtual environment path Correct the path to the Python virtual environment in both the service definition and the wrapper script to ensure proper execution of the analytics aggregator. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 7a657272-55ba-4a79-9a2e-f1ed9bc7a528 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 6b4e2246-92c4-45dd-8a8f-25a7d0067f86 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/449cf7c4-c97a-45ae-8234-e5c5b8d6a84f/7a657272-55ba-4a79-9a2e-f1ed9bc7a528/oGXAoP7 --- deployment/ids-analytics-aggregator.service | 2 +- deployment/run_analytics.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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