diff --git a/10.MediaImport/2.Install_FTP_watch_folder/0_setup.py b/10.MediaImport/2.Install_FTP_watch_folder/0_setup.py index b6e25e4b353d5ab4dd2139cc8662650b8e44e73c..668ba7c00295ecdf647fe075776cd96a73649bd5 100644 --- a/10.MediaImport/2.Install_FTP_watch_folder/0_setup.py +++ b/10.MediaImport/2.Install_FTP_watch_folder/0_setup.py @@ -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', diff --git a/10.MediaImport/2.Install_FTP_watch_folder/cron.d/mediaimport b/10.MediaImport/2.Install_FTP_watch_folder/cron.d/mediaimport new file mode 100644 index 0000000000000000000000000000000000000000..e4058d37bf5ea6793589a9814990d146d11a5108 --- /dev/null +++ b/10.MediaImport/2.Install_FTP_watch_folder/cron.d/mediaimport @@ -0,0 +1,2 @@ +# purge mediaimport files that are older than 60 days +0 23 * * * root /usr/bin/find /home/ftp/storage/incoming/ -type f -mtime +60 -delete