Skip to content

Commit

Permalink
Improve handling of missing settings files, fixes #958 (#977)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewfrench committed Jul 9, 2018
1 parent 4e5d0c8 commit 6ee268e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/ddevapp/drupal.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,8 @@ func drupalEnsureWritePerms(app *DdevApp) error {
makeWritable := []string{path.Dir(app.SiteSettingsPath), app.SiteSettingsPath}
for _, o := range makeWritable {
stat, err := os.Stat(o)
if err != nil {
// Warn the user, but continue.
util.Warning("Unable to set permissions: %v", err)
// If the file doesn't exist, don't try to set the permissions.
if os.IsNotExist(err) {
continue
}

Expand Down

0 comments on commit 6ee268e

Please sign in to comment.