From d2f3ed8ec05ec0d2c26d814795f782298259a7f7 Mon Sep 17 00:00:00 2001 From: Mate Majoros Date: Mon, 12 Jan 2026 11:53:33 +0200 Subject: [PATCH] backups of other sites are removed issue fixed --- .github/workflows/remove-site.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/remove-site.yml b/.github/workflows/remove-site.yml index 3dacb71f..65d5e8c5 100644 --- a/.github/workflows/remove-site.yml +++ b/.github/workflows/remove-site.yml @@ -182,7 +182,11 @@ jobs: cd ${{ env.DEPLOY_PATH }} # Remove the backup files (there could be multiple same site name backup folders with incremented numbers at the end in case of multiple removals) - docker compose exec -T -e SITE_NAME="${{ github.event.inputs.site_name }}" backend bash -c 'rm -rf /home/frappe/frappe-bench/archived/sites/${SITE_NAME}*' + docker compose exec -T -e SITE_NAME="${{ github.event.inputs.site_name }}" backend bash -c ' + cd /home/frappe/frappe-bench/archived/sites/ + rm -rf "${SITE_NAME}" "${SITE_NAME}"[0-9]* 2>/dev/null || true + echo "Removed: ${SITE_NAME} and ${SITE_NAME}[0-9]*" + ' "