mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-26 06:26:29 +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]
|
[Service]
|
||||||
Type=oneshot
|
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
|
PrivateDevices=yes
|
||||||
PrivateNetwork=yes
|
PrivateNetwork=yes
|
||||||
PrivateUsers=no
|
PrivateUsers=no
|
||||||
|
Loading…
x
Reference in New Issue
Block a user