1
0
mirror of https://github.com/kairos-io/kairos-agent.git synced 2025-05-11 01:44:53 +00:00

Restore loading env from config file ()

This commit is contained in:
Itxaka 2023-08-08 18:52:04 +02:00 committed by GitHub
parent b5e1e7a8ee
commit 1a72f56d67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -226,6 +226,9 @@ func Install(dir ...string) error {
}
func RunInstall(c *config.Config) error {
utils.SetEnv(c.Env)
utils.SetEnv(c.Install.Env)
if c.Install.Device == "" || c.Install.Device == "auto" {
c.Install.Device = detectDevice()
}