brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tbouron <...@git.apache.org>
Subject [GitHub] brooklyn-library pull request #34: Fix sed command that update the MySQL con...
Date Wed, 15 Jun 2016 12:59:17 GMT
Github user tbouron commented on a diff in the pull request:

    https://github.com/apache/brooklyn-library/pull/34#discussion_r67155972
  
    --- Diff: software/database/src/main/java/org/apache/brooklyn/entity/database/mysql/MySqlNodeEffectors.java
---
    @@ -75,7 +75,7 @@ public Void call(ConfigBag parameters) {
                 DynamicTasks.queue(
                         SshTasks.newSshExecTaskFactory(machine, 
                                         "cd "+entity().getAttribute(MySqlNode.RUN_DIR),
    -                                    "sed -i'' -e 's@^\\(\\s*password\\s*=\\s*\\).*$@\\1"
+ newPass.replace("\\", "\\\\") + "@g' mymysql.cnf")
    +                                    "sed -i.bak 's/\\(password.*\\)=.*/\\1= " + newPass.replace("\\",
"\\\\") + "/' mymysql.cnf")
    --- End diff --
    
    You are right for the 2 mentioned cases @neykov, I didn't think this through.
    
    I'll need to go back to the drawing board.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message