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
1 changed files with 8 additions and 0 deletions

View File

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