From 21b4b513c01208f8f76593d200f08d620b0ad85d Mon Sep 17 00:00:00 2001 From: unfr Date: Wed, 13 Aug 2025 10:54:54 +0200 Subject: [PATCH] Correction oubli push --- autopost/posteur.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autopost/posteur.sh b/autopost/posteur.sh index 653ee5f..73378ff 100644 --- a/autopost/posteur.sh +++ b/autopost/posteur.sh @@ -45,6 +45,9 @@ while true; do LOG="${DOSSIER_LOGS}${FILESANSEXT}.log" echo -e "${VERT}DEBUT DE TRAITEMENT DE ${FILESANSEXT}${NORMAL}" | tee -a "$LOG" + if [ "$dbtype" = "mysql" ]; then + db_query "UPDATE \`$MYSQL_TABLE\` SET status = 4 WHERE id = ${id};" + fi echo -e "${CYAN}CREATION DES PAR2${NORMAL}" | tee -a "$LOG" parpar -s10M -S -m4096M -t16 -r20% -O -o "${FILESANSEXT}.par2" "${name}" \ > >(tee -a "$LOG") 2> >(tee -a "$LOG" >&2)