From 3d6fc2bf0a450ac9060efcb17811c15e956564fd Mon Sep 17 00:00:00 2001 From: Shlomi <5992161+ShlomiPorush@users.noreply.github.com> Date: Wed, 14 Aug 2024 16:41:35 +0300 Subject: [PATCH] Adding missing apostrophe in backup log this looks like this: environment variable. Executing '/scripts/mysql-pre-script-s3.sh as you can see there is a missing ' after the script --- install/assets/functions/10-db-backup | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install/assets/functions/10-db-backup b/install/assets/functions/10-db-backup index 0c174b8..f963097 100644 --- a/install/assets/functions/10-db-backup +++ b/install/assets/functions/10-db-backup @@ -1397,7 +1397,7 @@ notify() { eval "${NOTIFICATION_CUSTOM_SCRIPT}" "${1}" "${2}" "${3}" "${4}" "${5}" else if [ -x "${NOTIFICATION_CUSTOM_SCRIPT}" ] ; then - write_log notice "Found NOTIFICATION_CUSTOM_SCRIPT environment variable. Executing '${NOTIFICATION_CUSTOM_SCRIPT}" + write_log notice "Found NOTIFICATION_CUSTOM_SCRIPT environment variable. Executing '${NOTIFICATION_CUSTOM_SCRIPT}'" # script timestamp logfile errorcode subject body eval "${NOTIFICATION_CUSTOM_SCRIPT}" "${1}" "${2}" "${3}" "${4}" "${5}" else @@ -1684,7 +1684,7 @@ pre_dbbackup() { run_as_user eval "${backup_job_pre_script}" "${dbtype}" "${backup_job_db_host}" "${1}" "${dbbackup_start_time}" "${backup_job_filename}" else if [ -x "${backup_job_pre_script}" ] ; then - write_log notice "Found PRE_SCRIPT environment variable. Executing '${backup_job_pre_script}" + write_log notice "Found PRE_SCRIPT environment variable. Executing '${backup_job_pre_script}'" run_as_user eval "${backup_job_pre_script}" "${dbtype}" "${backup_job_db_host}" "${1}" "${dbbackup_start_time}" "${backup_job_filename}" else write_log error "Can't execute PRE_SCRIPT environment variable '${backup_job_pre_script}' as its filesystem bit is not executible!" @@ -1753,7 +1753,7 @@ EOZP eval "${backup_job_post_script}" "${exit_code}" "${dbtype}" "${backup_job_db_host}" "${1}" "${dbbackup_start_time}" "${dbbackup_finish_time}" "${dbbackup_total_time}" "${backup_job_filename}" "${filesize}" "${checksum_value}" "${move_exit_code}" else if [ -x "${backup_job_post_script}" ] ; then - write_log notice "Found POST_SCRIPT environment variable. Executing '${backup_job_post_script}" + write_log notice "Found POST_SCRIPT environment variable. Executing '${backup_job_post_script}'" eval "${backup_job_post_script}" "${exit_code}" "${dbtype}" "${backup_job_db_host}" "${1}" "${dbbackup_start_time}" "${dbbackup_finish_time}" "${dbbackup_total_time}" "${backup_job_filename}" "${filesize}" "${checksum_value}" "${move_exit_code}" else write_log error "Can't execute POST_SCRIPT environment variable '${backup_job_post_script}' as its filesystem bit is not executible!"