Adjustments to cloud options, env location and expected vars
parent
ca7f4af7fe
commit
5c736a1b85
|
@ -92,6 +92,18 @@ func SetupCloudOptions() {
|
||||||
utils.WriteOption("EMAIL", cloudEnv["EMAIL"])
|
utils.WriteOption("EMAIL", cloudEnv["EMAIL"])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if cloudEnv["USERNAME"] != "" {
|
||||||
|
utils.WriteOption("USERNAME", cloudEnv["USERNAME"])
|
||||||
|
}
|
||||||
|
|
||||||
|
if cloudEnv["CLUSTER"] != "" {
|
||||||
|
utils.WriteOption("CLUSTER", cloudEnv["CLUSTER"])
|
||||||
|
}
|
||||||
|
|
||||||
|
if cloudEnv["CLUSTER_IP"] != "" {
|
||||||
|
utils.WriteOption("CLUSTER_IP", cloudEnv["CLUSTER_IP"])
|
||||||
|
}
|
||||||
|
|
||||||
if cloudEnv["EDGEBOXIO_API_TOKEN"] != "" {
|
if cloudEnv["EDGEBOXIO_API_TOKEN"] != "" {
|
||||||
utils.WriteOption("EDGEBOXIO_API_TOKEN", cloudEnv["EDGEBOXIO_API_TOKEN"])
|
utils.WriteOption("EDGEBOXIO_API_TOKEN", cloudEnv["EDGEBOXIO_API_TOKEN"])
|
||||||
}
|
}
|
||||||
|
|
|
@ -132,7 +132,7 @@ func GetPath(pathKey string) string {
|
||||||
if env["CLOUD_ENV_FILE_LOCATION"] != "" {
|
if env["CLOUD_ENV_FILE_LOCATION"] != "" {
|
||||||
targetPath = env["CLOUD_ENV_FILE_LOCATION"]
|
targetPath = env["CLOUD_ENV_FILE_LOCATION"]
|
||||||
} else {
|
} else {
|
||||||
targetPath = "/home/system/components/edgeboxctl/cloud.env"
|
targetPath = "/home/system/components/api/cloud.env"
|
||||||
}
|
}
|
||||||
|
|
||||||
case ApiEnvFileLocation:
|
case ApiEnvFileLocation:
|
||||||
|
|
Loading…
Reference in New Issue