From b232e58b06bba4d653d9d57b7f4cb087d5aae13b Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Mon, 3 Jun 2024 12:44:15 +1000 Subject: [PATCH] Set config file when provided (#4909) --- internal/manager/config/init.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/manager/config/init.go b/internal/manager/config/init.go index 6a764019b17..9c9caafb386 100644 --- a/internal/manager/config/init.go +++ b/internal/manager/config/init.go @@ -158,6 +158,7 @@ func (i *Config) initConfig() error { // if file does not exist, assume it is a new system if exists, _ := fsutil.FileExists(configFile); !exists { i.isNewSystem = true + i.SetConfigFile(configFile) // ensure we can write to the file if err := fsutil.Touch(configFile); err != nil {