Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Bluetooth cache cleanup command #2906

Merged
merged 1 commit into from
Nov 6, 2023

Conversation

agners
Copy link
Member

@agners agners commented Nov 2, 2023

Use the find's delete flag to delete the files instead of spanning a shell for each file.

Use the find's delete flag to delete the files instead of spanning a
shell for each file.
@agners agners added the os label Nov 2, 2023
@agners
Copy link
Member Author

agners commented Nov 2, 2023

This also should address the following error during bootup:

Nov 01 20:28:59 homeassistant systemd[1]: /usr/lib/systemd/system/haos-bt-cache.service:6: Ignoring unknown escape sequences: "find /var/lib/bluetooth/*/cache -mindepth 1 -type f -atime +7  -exec rm {} \;"

@agners agners requested a review from sairon November 6, 2023 07:42
@agners agners merged commit 1a6b741 into home-assistant:dev Nov 6, 2023
1 check passed
@agners agners deleted the improve-bt-cache-command branch November 6, 2023 11:22
darkxst pushed a commit to darkxst/ha-operating-system that referenced this pull request Nov 12, 2023
Use the find's delete flag to delete the files instead of spanning a
shell for each file.
darkxst pushed a commit to darkxst/ha-operating-system that referenced this pull request Nov 14, 2023
Use the find's delete flag to delete the files instead of spanning a
shell for each file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants