package-pipelines-miscellan.../matterbridge/matterbridge-upload-cleanup.service

11 lines
321 B
SYSTEMD
Raw Permalink Normal View History

2023-12-05 23:40:22 +01:00
[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