correction update

This commit is contained in:
2026-03-16 14:28:56 +01:00
parent 9296b2f680
commit 6b8406ba3c
2 changed files with 8 additions and 11 deletions

View File

@@ -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.conf"
load_conf_if_exists "/opt/monitoring/conf/autoupdate.local.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" lock_or_exit "monitoring-update"
require_cmd curl sha256sum awk mktemp chmod dirname mv rm grep sed sort comm cut tr find require_cmd curl sha256sum awk mktemp chmod dirname mv rm grep sed sort comm cut tr find

View File

@@ -1,15 +1,5 @@
#!/bin/bash #!/bin/bash
# Copyright (C) 2026 Cédric Abonnel # Configuration globale par défaut - NE PAS ÉDITER (Utilisez .local.conf)
#
# 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.
MONITORING_BASE="/opt/monitoring" MONITORING_BASE="/opt/monitoring"
MONITORING_LOG_DIR="/var/log/monitoring" MONITORING_LOG_DIR="/var/log/monitoring"