diff --git a/update/hisinone_bi_qisserver/modules_update.sh b/update/hisinone_bi_qisserver/modules_update.sh index b0d8c59..354f538 100755 --- a/update/hisinone_bi_qisserver/modules_update.sh +++ b/update/hisinone_bi_qisserver/modules_update.sh @@ -141,9 +141,6 @@ run_module_update() { module_upper=$(echo "$module" | tr '[:lower:]' '[:upper:]') local joblog="$log_dir/${module}_update.log" - # Modul-Log immer in SUCCESS_LOG_FILES merken (für mögliche Erfolgs-Anhänge) - SUCCESS_LOG_FILES+=("$joblog") - local start_ts local end_ts start_ts=$(date '+%Y-%m-%d %H:%M:%S%z') @@ -199,6 +196,9 @@ run_module_update() { } >>"$masterlog" if [ "$rc" -eq 0 ]; then + # Modul war erfolgreich → Modul-Log für mögliche Anhänge merken + SUCCESS_LOG_FILES+=("$joblog") + echo "--- Ende Update von $module: ERFOLGREICH ---" >>"$masterlog" ########## DB-Protokollierung: Erfolg ########## diff --git a/upgrade/hisinone_bi_qisserver/modules_upgrade.sh b/upgrade/hisinone_bi_qisserver/modules_upgrade.sh index 0ec9f91..5844b93 100755 --- a/upgrade/hisinone_bi_qisserver/modules_upgrade.sh +++ b/upgrade/hisinone_bi_qisserver/modules_upgrade.sh @@ -144,9 +144,6 @@ run_module_upgrade() { module_upper=$(echo "$module" | tr '[:lower:]' '[:upper:]') local joblog="$log_dir/${module}_upgrade.log" - # Modul-Log immer in SUCCESS_LOG_FILES merken (für mögliche Erfolgs-Anhänge) - SUCCESS_LOG_FILES+=("$joblog") - local start_ts local end_ts start_ts=$(date '+%Y-%m-%d %H:%M:%S%z') @@ -202,6 +199,9 @@ run_module_upgrade() { } >>"$masterlog" if [ "$rc" -eq 0 ]; then + # Modul war erfolgreich → Modul-Log für mögliche Anhänge merken + SUCCESS_LOG_FILES+=("$joblog") + echo "--- Ende Upgrade von $module: ERFOLGREICH ---" >>"$masterlog" ########## DB-Protokollierung: Erfolg ##########