mirror of
https://github.com/clearlinux/rkt.git
synced 2026-11-25 13:34:53 +00:00
stage1: update stage1 to work with new schema
This commit is contained in:
@@ -148,11 +148,11 @@ func (c *Container) appToSystemd(am *schema.ImageManifest, id types.Hash) error
|
||||
}
|
||||
|
||||
env := app.Environment
|
||||
env["AC_APP_NAME"] = name
|
||||
env["AC_METADATA_URL"] = c.MetadataSvcURL
|
||||
env.Set("AC_APP_NAME", name)
|
||||
env.Set("AC_METADATA_URL", c.MetadataSvcURL)
|
||||
|
||||
for ek, ev := range env {
|
||||
ee := fmt.Sprintf(`"%s=%s"`, ek, ev)
|
||||
for _, e := range env {
|
||||
ee := fmt.Sprintf(`"%s=%s"`, e.Name, e.Value)
|
||||
opts = append(opts, newUnitOption("Service", "Environment", ee))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user