Fix for issue 2924 (setup leaves root user password in a world readable file)
Instead of printing the password print the string "{rootUserPassword}" in the log file.
| | |
| | | final String[] args = new String[argList.size()]; |
| | | argList.toArray(args); |
| | | StringBuilder cmd = new StringBuilder(); |
| | | boolean nextPassword = false; |
| | | for (String s : argList) |
| | | { |
| | | if (cmd.length() > 0) |
| | | { |
| | | cmd.append(" "); |
| | | } |
| | | cmd.append(s); |
| | | if (nextPassword) |
| | | { |
| | | cmd.append("{rootUserPassword}"); |
| | | } |
| | | else |
| | | { |
| | | cmd.append(s); |
| | | } |
| | | nextPassword = s.equals("-w"); |
| | | } |
| | | LOG.log(Level.INFO, "configure DS cmd: "+cmd); |
| | | final InstallerHelper helper = new InstallerHelper(); |