Skip to content

Commit

Permalink
Extends pruning to cover both s3/ and temp/ folders
Browse files Browse the repository at this point in the history
  • Loading branch information
amplifi committed Mar 31, 2017
1 parent 5326aa3 commit daaa624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provision/roles/webserver/production/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
become_user: root
cron: name="prune django media files" minute=5 hour=0
user="root"
job="find {{ application_path }}cadasta/media/s3/* -type f -ctime +1 -exec rm {} \\; > /var/log/django/prune_media.log"
job="find {{ application_path }}cadasta/media -maxdepth 3 -type f -ctime +1 -exec rm {} \\; > /var/log/django/prune_media.log"

- name: Copy uwsgi_params to base directory
become: yes
Expand Down

0 comments on commit daaa624

Please sign in to comment.