Skip to content
Snippets Groups Projects
Commit a35348ba authored by Florent Thiery's avatar Florent Thiery
Browse files

auto purge unpublished files after 60 days, fixes #24829

parent f0dd753a
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,7 @@ def setup(interactive=True):
'mkdir -p /usr/local/bin',
'cp "%s/mediaimport_create_ftp_user.sh" /usr/local/bin' % (dir_path),
'cp "%s/mediaimport_remove_ftp_user.sh" /usr/local/bin' % (dir_path),
'cp "%s/cron.d/* /etc/cron.d' % dir_path,
'mkdir -p /home/ftp/storage',
'mkdir -p /home/ftp/storage/incoming',
'mkdir -p /home/ftp/storage/watchfolder',
......
# purge mediaimport files that are older than 60 days
0 23 * * * root /usr/bin/find /home/ftp/storage/incoming/ -type f -mtime +60 -delete
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment