From 60296c8687cadedbf680fe3c5aaf20f6dc060d86 Mon Sep 17 00:00:00 2001 From: JeGoi <13801368+JeGoi@users.noreply.github.com> Date: Wed, 16 Oct 2024 10:35:45 -0400 Subject: [PATCH] exit only if not enough space --- addons/exportable-backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/exportable-backup.sh b/addons/exportable-backup.sh index 94175a40a68..73a2b351cc4 100755 --- a/addons/exportable-backup.sh +++ b/addons/exportable-backup.sh @@ -81,8 +81,8 @@ check_disk_space(){ if (( $BACKUPS_AVAILABLE_SPACE < (( (( $MYSQL_USED_SPACE + $CONF_USED_SPACE )) /2 )) )); then echo "There is not enough space in $BACKUP_DIRECTORY to safely backup exportable. Skipping backup." >&2 echo "There is not enough space in $BACKUP_DIRECTORY to safely backup exportable. Skipping backup." > /usr/local/pf/var/backup_pf.status + exit $BACKUPRC fi - exit $BACKUPRC }