diff --git a/docker/types.go b/docker/types.go index 15ecb43..45ff332 100644 --- a/docker/types.go +++ b/docker/types.go @@ -208,12 +208,12 @@ func (c *Container) SetFileContent(filename string, text string, mode string) er return err } - _, err = driver.Exec(c.App.Name, []string{"chown", directory, "app:app"}, "", []string{}, false) + _, err = driver.Exec(c.App.Name, []string{"chown", "app:app", directory}, "", []string{}, false) if err != nil { return err } - _, err = driver.Exec(c.App.Name, []string{"chown", filename, "app:app"}, "", []string{}, false) + _, err = driver.Exec(c.App.Name, []string{"chown", "app:app", filename}, "", []string{}, false) if err != nil { return err }