This commit is contained in:
Oliver
2025-10-11 18:55:02 -03:00
parent 7953190b37
commit 8ed294f3b7
6 changed files with 29 additions and 27 deletions

View File

@@ -42,7 +42,7 @@ doas docker exec "$UUID" chown odoo:odoo -R /mnt/backup
# Remove old backups beyond the configured slots
ls -t "$BACKUP_DIR"/[0-9]*.zip 2>/dev/null | tail -n +$((BACKUP_SLOTS + 1)) | while read -r file; do
echo "Deleting old backup: $file"
rm -f "$file"
doas rm -f "$file"
done