Skip to content
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

fix: when settings files not set, don't chmod, fixes #5675 #5676

Merged
merged 2 commits into from Feb 5, 2024

Conversation

rfay
Copy link
Member

@rfay rfay commented Jan 4, 2024

The Issue

Projects with no settings may fail when starting outside homedir. They shouldn't even be chmodding in that case

How This PR Solves The Issue

  • Remove the chmod action if no settings files are configured (as with php project type)
  • Completely remove phpPostStartAction as it contained nothing useful. PHP projects never have settings.

Manual Testing Instructions

Run ddev start <somephpproject> in the root directory of a linux machine. It should work fine.
Run ddev start <somedrupalproject> in the root directory on linux, it should work and unwriteable settings files should be chmodded properly.

Automated Testing Overview

Related Issue Link(s)

Release/Deployment Notes

Copy link

github-actions bot commented Jan 4, 2024

@rfay rfay force-pushed the 20240104_dont_chmod_php_settings branch from 3cc6e97 to 2d498a4 Compare February 2, 2024 19:00
@rfay rfay marked this pull request as ready for review February 2, 2024 19:01
@rfay rfay requested a review from a team as a code owner February 2, 2024 19:01
It only tries to create settings, and php project type never has settings
@rfay rfay force-pushed the 20240104_dont_chmod_php_settings branch from 2d498a4 to 8dafa11 Compare February 4, 2024 15:25
@rfay rfay changed the title fix: when settings files not set, don't chmod, for #5675 fix: when settings files not set, don't chmod, fixes #5675 Feb 4, 2024
@rfay rfay requested a review from stasadev February 4, 2024 15:27
Copy link
Member

@stasadev stasadev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested both use cases and confirmed that they work.

The actual error message (if someone tries to search for it):

failed to write settings file : could not change permissions on file . to make it writeable: chmod .: operation not permitted

@rfay rfay merged commit baa3d75 into ddev:master Feb 5, 2024
24 checks passed
@rfay rfay deleted the 20240104_dont_chmod_php_settings branch February 5, 2024 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants