Commit 235da6f6 authored by Charlie Jacomme's avatar Charlie Jacomme

Correction du chmod cronjob

parent 2d952209
# Attention, il faut *copier* ce fichier dans /etc/cron.d, owner root:adm et droits 644
# m h dom mon dow user command
# Il faut que www-data puisse lire/écrire les photos
43 * * * * root chgrp -R www-data /home/note/Django_Client/media/photos ; find /home/note/Django_Client/media/photos -type d -exec chmod g+rws {} \; ; find /home/note/Django_Client/media/photos -type f -exec chmod g+rw {} \;
# On rend au groupe note ce qui lui appartient, parce que les gens cassent tout le temps le dépôt git
# Mais on ne touche pas à au dossier de photos
46 * * * * root find /home/note/Django_Client/ \! -regex "/home/note/Django_Client/media/photos\(/.*\)?" -exec chgrp note {} \; ; find /home/note/Django_Client/ -type d \! -regex "/home/note/Django_Client/media/photos\(/.*\)?" -exec chmod g+rws {} \; ; find /home/note/Django_Client/ -type f \! -regex "/home/note/Django_Client/media/photos\(/.*\)?" -exec chmod g+rw {} \;
46 * * * * root chgrp -R note /home/note/Django_Client/ ; find /home/note/Django_Client/ -type d -exec chmod g+rws {} \; ; find /home/note/Django_Client/ -type f -exec chmod g+rw {} \;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment