mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 11:27:32 +00:00
patch agent config by env
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user