|
|
|
@ -207,7 +207,7 @@ public abstract class AbstractCommandExecutor {
|
|
|
|
|
// merge error information to standard output stream
|
|
|
|
|
processBuilder.redirectErrorStream(true); |
|
|
|
|
// setting up user to run commands
|
|
|
|
|
processBuilder.command("sudo", "-u", tenantCode, commandType(), commandFile); |
|
|
|
|
processBuilder.command("sudo", "-u", tenantCode, commandInterpreter(), commandFile); |
|
|
|
|
|
|
|
|
|
process = processBuilder.start(); |
|
|
|
|
|
|
|
|
@ -561,7 +561,7 @@ public abstract class AbstractCommandExecutor {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected abstract String buildCommandFilePath(); |
|
|
|
|
protected abstract String commandType(); |
|
|
|
|
protected abstract String commandInterpreter(); |
|
|
|
|
protected abstract boolean checkFindApp(String line); |
|
|
|
|
protected abstract void createCommandFileIfNotExists(String execCommand, String commandFile) throws IOException; |
|
|
|
|
} |
|
|
|
|