mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-18 06:05:09 +00:00
backups of other sites are removed issue fixed
This commit is contained in:
parent
6fe8eed282
commit
d2f3ed8ec0
1 changed files with 5 additions and 1 deletions
6
.github/workflows/remove-site.yml
vendored
6
.github/workflows/remove-site.yml
vendored
|
|
@ -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]*"
|
||||
'
|
||||
"
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue