Skip to content

Commit

Permalink
Ensure write permissions for settings.local.php and services.yml, fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewfrench committed Jul 10, 2018
1 parent 475e81b commit 99f444a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkg/ddevapp/drupal.go
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,14 @@ func drupalEnsureWritePerms(app *DdevApp) error {
output.UserOut.Printf("Ensuring write permissions for %s...", app.GetName())
var writePerms os.FileMode = 0200

makeWritable := []string{path.Dir(app.SiteSettingsPath), app.SiteSettingsPath}
settingsDir := path.Dir(app.SiteSettingsPath)
makeWritable := []string{
settingsDir,
app.SiteSettingsPath,
app.SiteLocalSettingsPath,
path.Join(settingsDir, "services.yml"),
}

for _, o := range makeWritable {
stat, err := os.Stat(o)
// If the file doesn't exist, don't try to set the permissions.
Expand Down

0 comments on commit 99f444a

Please sign in to comment.