Compare commits

..

2 Commits

Author SHA1 Message Date
Paulo Truta f0047a7a0c added cluster_ssh_port_var to read from env 2023-11-05 02:03:46 +01:00
Paulo Truta 5c736a1b85 Adjustments to cloud options, env location and expected vars 2023-11-05 02:01:16 +01:00
2 changed files with 17 additions and 1 deletions

View File

@ -92,6 +92,22 @@ func SetupCloudOptions() {
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["CLUSTER_SSH_PORT"] != "" {
utils.WriteOption("CLUSTER_SSH_PORT", cloudEnv["CLUSTER_SSH_PORT"])
}
if cloudEnv["EDGEBOXIO_API_TOKEN"] != "" {
utils.WriteOption("EDGEBOXIO_API_TOKEN", cloudEnv["EDGEBOXIO_API_TOKEN"])
}

View File

@ -132,7 +132,7 @@ func GetPath(pathKey string) string {
if env["CLOUD_ENV_FILE_LOCATION"] != "" {
targetPath = env["CLOUD_ENV_FILE_LOCATION"]
} else {
targetPath = "/home/system/components/edgeboxctl/cloud.env"
targetPath = "/home/system/components/api/cloud.env"
}
case ApiEnvFileLocation: