added cluster_ssh_port_var to read from env

pull/30/head
Paulo Truta 2023-11-05 02:03:46 +01:00
parent 5c736a1b85
commit f0047a7a0c
1 changed files with 4 additions and 0 deletions

View File

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