11 lines
321 B
SYSTEMD
11 lines
321 B
SYSTEMD
|
[Unit]
|
||
|
Description=Clean up old files from matterbridge's upload directory
|
||
|
|
||
|
[Service]
|
||
|
Type=oneshot
|
||
|
EnvironmentFile=-/etc/default/matterbridge
|
||
|
ExecStart=find /var/lib/matterbridge/upload -type f -mtime +${UPLOAD_DIRECTORY_RETENTION_DAYS} -delete
|
||
|
User=matterbridge
|
||
|
Group=matterbridge
|
||
|
WorkingDirectory=/var/lib/matterbridge
|