try { String asadmin = Constants.v4 ? "/lib/nadmin' version --local --terse" : "/bin/asadmin' version --local --terse"; String cmd = "'" + sshInstallDir + "/" + SystemPropertyConstants.getComponentName() + asadmin; int status = sshLauncher.runCommand(cmd, outStream); if (status == 0) {
List<String> fullcommand = new ArrayList<String>(); String installDir = node.getInstallDirUnixStyle() + "/" + SystemPropertyConstants.getComponentName(); if (!StringUtils.ok(installDir)) { throw new IllegalArgumentException("Node does not have an installDir");
SystemPropertyConstants.getComponentName(); if (!StringUtils.ok(installDir)) { throw new IllegalArgumentException("Node does not have an installDir");
+ sshInstallDir + "/" + SystemPropertyConstants.getComponentName() + "/lib"); try { sftpClient.chmod((sshInstallDir + "/" + SystemPropertyConstants.getComponentName() + "/lib/nadmin"), 0755); if (logger.isLoggable(Level.FINER)) logger.finer("Fixed file permission for nadmin under " + host + ":" + sshInstallDir + "/" + SystemPropertyConstants.getComponentName() + "/lib/nadmin");