patch agent config by env

This commit is contained in:
Maidul Islam
2024-01-09 14:30:29 -05:00
parent b815e3eb56
commit 766f301aea
+1 -2
View File
@@ -498,7 +498,7 @@ var agentCmd = &cobra.Command{
agentConfigInBase64 := os.Getenv("INFISICAL_AGENT_CONFIG_BASE64") agentConfigInBase64 := os.Getenv("INFISICAL_AGENT_CONFIG_BASE64")
if configPath != "" { if agentConfigInBase64 == "" {
data, err := ioutil.ReadFile(configPath) data, err := ioutil.ReadFile(configPath)
if err != nil { if err != nil {
if !FileExists(configPath) { if !FileExists(configPath) {
@@ -506,7 +506,6 @@ var agentCmd = &cobra.Command{
return return
} }
} }
agentConfigInBytes = data agentConfigInBytes = data
} }