variable plus explicite

This commit is contained in:
Jérémy Lecour 2022-01-27 13:57:56 +01:00 committed by Jérémy Lecour
parent 0705625dbd
commit 8b72415669

View file

@ -506,11 +506,11 @@ fi
STOP_EPOCH=$(/bin/date +%s) STOP_EPOCH=$(/bin/date +%s)
start=$(/bin/date --date="@${START_EPOCH}" +"${DATE_FORMAT}") start_time=$(/bin/date --date="@${START_EPOCH}" +"${DATE_FORMAT}")
stop=$(/bin/date --date="@${STOP_EPOCH}" +"${DATE_FORMAT}") stop_time=$(/bin/date --date="@${STOP_EPOCH}" +"${DATE_FORMAT}")
duration=$(( STOP_EPOCH - START_EPOCH )) duration=$(( STOP_EPOCH - START_EPOCH ))
log "STOP GLOBAL - start='${start}' stop='${stop}' duration=${duration}s" log "STOP GLOBAL - start='${start_time}' stop='${stop_time}' duration=${duration}s"
tail -20 "${LOGFILE}" \ tail -20 "${LOGFILE}" \
| mail -s "[info] EvoBackup - Client ${HOSTNAME}" ${MAIL} | mail -s "[info] EvoBackup - Client ${HOSTNAME}" ${MAIL}