From 51f0206e1728dcfd0cb08c971681fb4068972319 Mon Sep 17 00:00:00 2001 From: Dave Conroy Date: Sat, 29 Aug 2020 07:43:15 -0700 Subject: [PATCH] Release 2.1.0 - See CHANGELOG.md --- install/etc/services.available/10-db-backup/run | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/install/etc/services.available/10-db-backup/run b/install/etc/services.available/10-db-backup/run index d6f1fa1..9e6a952 100755 --- a/install/etc/services.available/10-db-backup/run +++ b/install/etc/services.available/10-db-backup/run @@ -444,14 +444,19 @@ print_debug "Backup routines Initialized on $(date)" find "${DB_DUMP_TARGET}"/ -mmin +"${DB_CLEANUP_TIME}" -iname "*" -exec rm {} \; fi + if [ -n "$POST_SCRIPT" ] ; then + print_notice "Found POST_SCRIPT environment variable. Executing" + "${POST_SCRIPT}" + fi + ### Post Backup Custom Script Support if [ -d /assets/custom-scripts/ ] ; then - print_notice "Found Custom Scripts to Execute" + print_notice "Found Custom Filesystem Scripts to Execute" for f in $(find /assets/custom-scripts/ -name \*.sh -type f); do print_notice "Running Script ${f}" ## script EXIT_CODE DB_TYPE DB_HOST DB_NAME DATE BACKUP_FILENAME FILESIZE MD5_VALUE chmod +x "${f}" - ${f} "$"{exit_code}"" "${dbtype}" "${dbhost}" "${dbname}" "${now_date}" "${now_time}" "${target}" "${FILESIZE}" "${MD5VALUE}" + ${f} "${exit_code}" "${dbtype}" "${dbhost}" "${dbname}" "${now_date}" "${now_time}" "${target}" "${FILESIZE}" "${MD5VALUE}" done fi