Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
In the event that you're using a networked file system for storing site files, it may not be necessary to try to chmod the different subdirectories in sites/sitename/files. In my case, it's actually causing warnings on site verifications (the ACL for my file system is stored elsewhere - apache can write files to it already, and it doesn't need to be changed).
So I propose that we have some way to skip chmod'ing the directories. I have a way to do this, too. Patch is coming up.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2099057-skip-chmod-chgrp-02.patch | 1.4 KB | danquah |
#1 | 2099057_01.patch | 996 bytes | cweagans |
Comments
Comment #1
cweagansIn this case, you can implement hook_provision_drupal_create_directories_alter(), and change any permission you want to FALSE. Easy :)
Comment #2
danquah CreditAttribution: danquah commentedLooks good.
After applying the patch and doing a quick implementation of hook_provision_drupal_create_directories_alter the path whose permission I set to FALSE no longer got chmod'ed.
For the sake of completness I've updated the patch to also allow chgrp to be skipped via hook_provision_drupal_chgrp_directories_alter.
Comment #3
cweagansAh, yeah, that makes sense. +1 from me.
Comment #4
anarcat CreditAttribution: anarcat commentedCould we update api.php with that too please?
Comment #5
ergonlogicFixed in f78effa. Thanks all!