From 30195800dda549012ce9eb931bb874241b7c9929 Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Fri, 7 Jul 2023 03:59:48 +0000 Subject: [PATCH] handle new dir --- backup.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backup.sh b/backup.sh index 40ff8811..9f399f59 100755 --- a/backup.sh +++ b/backup.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -SCRIPT_VERSION="26" +SCRIPT_VERSION="27" GREEN='\033[0;32m' YELLOW='\033[1;33m' @@ -49,6 +49,10 @@ if [ -d /meshcentral/meshcentral-backup ]; then rm -rf /meshcentral/meshcentral-backup/* fi +if [ -d /meshcentral/meshcentral-backups ]; then + rm -rf /meshcentral/meshcentral-backups/* +fi + if [ -d /meshcentral/meshcentral-coredumps ]; then rm -f /meshcentral/meshcentral-coredumps/* fi