-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
settings.php permissions #68
Comments
I am wondering if this is an intentional aspect of drupal-recommended-settings and I should just let it happen. I have noticed, when ssh into these sites, that some seem to have changed the permissions to -r--r--r--. On the site I am currently working on, the settings.php file has not been included in the deployment artefact at all. This is most perplexing. |
I've gone and added settings.php to the gitignore then added |
As it turns out, the missing settings file is an issue with Acquia's ODE environments. However, I still think it's weird that the settings.php file gets chmod to 777 during composer install. |
We have decided to add the |
Found this too - we have a multisite installation so it's only adding the We have the file committed into the repo as it's got DDEV config require in it, as well as some basic setup for devs who forget to set up their local config, so it's not really feasible to add it to the gitignore. Yes, the permissions for the file on the Acquia server get changed to |
Describe the bug
On
composer install
, drupal-recommended-settings runs/home/ide/project/vendor/bin/drush drs:init:settings
. When it does this, permissions on settings.php change from 644 to 755.To Reproduce
Expected behavior
Permissions on settings.php should be 644 on a drupal website.
Environment
Happening both locally and during pipelines ci, so ci fails on a check dirty.
Additional context
I have tried adding the file to file-mapping in composer, but that also doesn't work. The chmod still happens.
Although I really don't want to do this anyways because it wouldn't capture future patches to settings.php.
For now I will add a hook that re-chmods the file but this is weird.
The text was updated successfully, but these errors were encountered: