Log BEGIN/END of main action

This commit is contained in:
Jérémy Lecour 2022-06-03 11:09:38 +02:00 committed by Jérémy Lecour
parent e718156f86
commit b9f0e0d061

View file

@ -417,6 +417,10 @@ post_backup_hook() {
} }
main() { main() {
if ! is_quiet; then
log_info "BEGIN evomariabackup"
fi
kill_or_clean_lockfile "${lock_file}" kill_or_clean_lockfile "${lock_file}"
# shellcheck disable=SC2064 # shellcheck disable=SC2064
trap "rm -f ${lock_file};" 0 trap "rm -f ${lock_file};" 0
@ -437,6 +441,10 @@ main() {
if [ -n "${post_backup_hook}" ]; then if [ -n "${post_backup_hook}" ]; then
post_backup_hook post_backup_hook
fi fi
if ! is_quiet; then
log_info "END evomariabackup"
fi
} }
# Declare variables # Declare variables