Log BEGIN/END of main action
This commit is contained in:
parent
e718156f86
commit
b9f0e0d061
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue