mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-27 19:00:25 +08:00
turn of exporter only on upgrade
This commit is contained in:
@@ -229,8 +229,10 @@ save_config() { (
|
|||||||
if [ "$INSTALL_TYPE" = "pro" ]; then
|
if [ "$INSTALL_TYPE" = "pro" ]; then
|
||||||
save_config_item NETMAKER_TENANT_ID "$TENANT_ID"
|
save_config_item NETMAKER_TENANT_ID "$TENANT_ID"
|
||||||
save_config_item LICENSE_KEY "$LICENSE_KEY"
|
save_config_item LICENSE_KEY "$LICENSE_KEY"
|
||||||
|
if [ "$UPGRADE_FLAG" = "yes" ];then
|
||||||
save_config_item METRICS_EXPORTER "on"
|
save_config_item METRICS_EXPORTER "on"
|
||||||
save_config_item PROMETHEUS "on"
|
save_config_item PROMETHEUS "on"
|
||||||
|
fi
|
||||||
save_config_item SERVER_IMAGE_TAG "$IMAGE_TAG-ee"
|
save_config_item SERVER_IMAGE_TAG "$IMAGE_TAG-ee"
|
||||||
else
|
else
|
||||||
save_config_item "off"
|
save_config_item "off"
|
||||||
|
|||||||
Reference in New Issue
Block a user