-
Notifications
You must be signed in to change notification settings - Fork 3
Adjust files directory sub-folder permissions after site install. #19
Conversation
tasks/main.yml
Outdated
mode: 0770 | ||
recurse: yes | ||
become: "{{ deploydrupal_files_become }}" | ||
when: deploydrupal_site_install_config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this only occurs when installing with config since that is how the media module will be installed? What if someone is installing with a profile other than minimal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we can remove the other similar instance of this and then ditch the when
on this task so that it runs every time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this only occurs when installing with config since that is how the media module will be installed? What if someone is installing with a profile other than minimal?
I'm not sure where you are going with this. Let's discuss on the coffee zoom.
I wonder if we can remove the other similar instance of this and then ditch the when on this task so that it runs every time.
Let's discuss this on coffee zoom too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed and decided to use an array of subdirectory names to avoid altering other files.
The latest approach seems to be working well. |
@markdorison I added back the step to set the |
The site install process was creating
sites/mysite/files/styles
andsites/mysite/files/media-icons
and setting their ownership to the user who ran the site install, which wasroot
in my case.This fixes the ownership on those directories so image styles can be generated without an error (original impetus for this change).
After testing this I realized that we need to make this not perform the action on hidden files.
.htaccess
is being changed and it should not be. Fix for that to follow.Current:
-rwxrwx--- 1 www-data root 543 Jan 16 21:54 .htaccess
Correct:
-r--r--r-- 1 root root 543 Jan 16 03:35 .htaccess
I have thus far been unable to find a way to do this with the tools available.