modify don't install eac by default
@@ -211,7 +211,16 @@ func GlobalConfigSet(serviceType string) *restclient.Config {
}
}
}
+ if value, ok := configMap.Data["cpfs-nas-enable"]; ok {
+ if value == "enable" || value == "yes" || value == "true" {
+ if serviceType == utils.PluginService {
+ deleteRpm("aliyun-alinas-utils.noarch")
+ installRpm("aliyun-alinas-utils", "aliyun-alinas-utils-1.1-2.al7.noarch.rpm")
+ }
}
+ }
+ if value, ok := configMap.Data["cnfs-client-properties"]; ok {
+ if strings.Contains(value, "enable=true") {
//install alinas rpm(alinas-eac alinas-utils) and cpfs rpm(alinas-utils)
if serviceType == utils.PluginService {
//deleteRpm before installRpm
@@ -227,6 +236,9 @@ func GlobalConfigSet(serviceType string) *restclient.Config {
log.Infof("Run %s is successfully", runCmd)
}
}
+ }
+ }
+ }
metricNasConf := os.Getenv(NasMetricByPlugin)
if metricNasConf == "true" || metricNasConf == "yes" {
