mirror of
https://github.com/home-assistant/operating-system.git
synced 2026-04-29 05:04:27 +01:00
Use the find's delete flag to delete the files instead of spanning a shell for each file.
16 lines
410 B
Desktop File
16 lines
410 B
Desktop File
[Unit]
|
|
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 -delete'
|
|
PrivateDevices=yes
|
|
PrivateNetwork=yes
|
|
PrivateUsers=no
|
|
ProtectKernelTunables=yes
|
|
ProtectKernelModules=yes
|
|
ProtectControlGroups=yes
|
|
MemoryDenyWriteExecute=yes
|
|
SystemCallFilter=@default @file-system @basic-io @system-service
|
|
|