mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-24 13:36:31 +00:00
Improve Bluetooth cache cleanup command (#2906)
Use the find's delete flag to delete the files instead of spanning a shell for each file.
This commit is contained in:
parent
fccb11cad1
commit
1a6b7418f0
@ -3,7 +3,7 @@ Description=Remove Bluetooth cache entries older than one week
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/bin/sh -c 'find /var/lib/bluetooth/*/cache -mindepth 1 -type f -atime +7 -exec rm {} \;'
|
||||
ExecStart=/bin/sh -c 'find /var/lib/bluetooth/*/cache -mindepth 1 -type f -atime +7 -delete'
|
||||
PrivateDevices=yes
|
||||
PrivateNetwork=yes
|
||||
PrivateUsers=no
|
||||
|
Loading…
x
Reference in New Issue
Block a user