Skip to content

Commit

Permalink
fix(redis): 修复写exporter配置文件 bug TencentBlueKing#7634
Browse files Browse the repository at this point in the history
  • Loading branch information
xiepaup committed Oct 29, 2024
1 parent a491185 commit 4c2ab82
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func GetProxyPasswdFromConfFlie(port int, role string) (password string, err err
if err != nil {
return
}
grepCmd = fmt.Sprintf(`grep -w "password" %s|grep -vE "#"|awk '{print $NF}'`, confFile)
grepCmd = fmt.Sprintf(`grep -w "password" %s|grep -vE "#\s*password" |awk '{print $NF}'`, confFile)
} else if role == consts.MetaRolePredixy {
confFile, err = GetPredixyLocalConfFile(port)
if err != nil {
Expand Down

0 comments on commit 4c2ab82

Please sign in to comment.