mirror of
https://github.com/clearlinux/rkt.git
synced 2026-11-25 21:42:50 +00:00
Merge pull request #316 from philips/add-working-directory
stage1: add WorkingDirectory support
This commit is contained in:
@@ -146,6 +146,10 @@ func (c *Container) appToSystemd(am *schema.ImageManifest, id types.Hash) error
|
||||
opts = append(opts, newUnitOption("Service", "Environment", ee))
|
||||
}
|
||||
|
||||
if app.WorkingDirectory != "" {
|
||||
opts = append(opts, &unit.UnitOption{"Service", "WorkingDirectory", app.WorkingDirectory})
|
||||
}
|
||||
|
||||
saPorts := []types.Port{}
|
||||
for _, p := range app.Ports {
|
||||
if p.SocketActivated {
|
||||
|
||||
Reference in New Issue
Block a user