Skip to content

Commit

Permalink
www: dist-perms cron.daily script to fix ~dist permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Nov 5, 2019
1 parent 2e9f63f commit e3a4a86
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ansible/www-standalone/resources/scripts/dist-perms
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

find /home/dist/nodejs/ \( -type f -o -type d \) -user dist -mtime +7 -exec chown root.root '{}' \;
9 changes: 9 additions & 0 deletions ansible/www-standalone/tasks/site-setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,12 @@
- '* * * * * root /home/nodejs/cdn-purge.sh'
- '* */4 * * * nodejs /home/nodejs/sync-benchmarking.sh'
tags: setup

- name: Site Setup | Add dist-perms script in cron.daily
copy:
src: ./resources/scripts/dist-perms
dest: /etc/cron.daily/dist-perms
mode: 0755
owner: root
group: root
tags: setup

0 comments on commit e3a4a86

Please sign in to comment.