SSH keys permission issue fix

This commit is contained in:
Adam Štrauch 2020-08-31 12:29:34 +02:00
parent 6b4fe9e39b
commit 9e858935c9
Signed by: cx
GPG key ID: 018304FFA8988F8D

View file

@ -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
}