diff --git a/servers/linux/monitoring/bin/monitoring-update.sh b/servers/linux/monitoring/bin/monitoring-update.sh index 573349b..e8f6ba7 100755 --- a/servers/linux/monitoring/bin/monitoring-update.sh +++ b/servers/linux/monitoring/bin/monitoring-update.sh @@ -22,6 +22,13 @@ SCRIPT_PATH="$(readlink -f "$0" 2>/dev/null || realpath "$0" 2>/dev/null || echo load_conf_if_exists "/opt/monitoring/conf/autoupdate.conf" load_conf_if_exists "/opt/monitoring/conf/autoupdate.local.conf" +# Définir les variables par défaut si elles ne sont pas dans les fichiers .conf +UPDATE_TMP_DIR="${UPDATE_TMP_DIR:-/tmp/monitoring-update}" +UPDATE_TIMEOUT_CONNECT="${UPDATE_TIMEOUT_CONNECT:-3}" +UPDATE_TIMEOUT_TOTAL="${UPDATE_TIMEOUT_TOTAL:-15}" +UPDATE_MANIFEST_URL="${UPDATE_MANIFEST_URL:-}" +UPDATE_BASE_URL="${UPDATE_BASE_URL:-}" + lock_or_exit "monitoring-update" require_cmd curl sha256sum awk mktemp chmod dirname mv rm grep sed sort comm cut tr find diff --git a/servers/linux/monitoring/conf/monitoring.conf b/servers/linux/monitoring/conf/monitoring.conf index 155c881..580f7fe 100644 --- a/servers/linux/monitoring/conf/monitoring.conf +++ b/servers/linux/monitoring/conf/monitoring.conf @@ -1,15 +1,5 @@ #!/bin/bash -# Copyright (C) 2026 Cédric Abonnel -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. +# Configuration globale par défaut - NE PAS ÉDITER (Utilisez .local.conf) MONITORING_BASE="/opt/monitoring" MONITORING_LOG_DIR="/var/log/monitoring"