Fix commands.

Add username to config struct, if present execute `sudo -E -u username`
in command
This commit is contained in:
2021-10-21 18:01:31 +02:00
parent d9c1c42150
commit 92133a6b2e
7 changed files with 19 additions and 5 deletions

View File

@ -17,6 +17,7 @@ type DockerMap struct {
Name string `yaml:"name,omitempty"`
MainService string `yaml:"main_service,omitempty"`
Shell string `yaml:"shell,omitempty"`
Username string `yaml:"username,omitempty"`
}
func NewLedoFile(s string) (*LedoFile, error) {