From f6746b94443cc5c49b4511e25de8dea2b68a1691 Mon Sep 17 00:00:00 2001 From: fuchanghai <‘2875334588@qq.com’> Date: Tue, 10 Oct 2023 09:05:42 +0800 Subject: [PATCH] sudo -u user -i xx --- .../engine/executor/core/executor/BaseCommandProcess.java | 1 + 1 file changed, 1 insertion(+) diff --git a/datavines-engine/datavines-engine-executor/src/main/java/io/datavines/engine/executor/core/executor/BaseCommandProcess.java b/datavines-engine/datavines-engine-executor/src/main/java/io/datavines/engine/executor/core/executor/BaseCommandProcess.java index ba41c72b2..cc169ce0d 100644 --- a/datavines-engine/datavines-engine-executor/src/main/java/io/datavines/engine/executor/core/executor/BaseCommandProcess.java +++ b/datavines-engine/datavines-engine-executor/src/main/java/io/datavines/engine/executor/core/executor/BaseCommandProcess.java @@ -138,6 +138,7 @@ private void buildProcess(String commandFile) throws IOException{ command.add("sudo"); command.add("-u"); command.add(jobExecutionRequest.getTenantCode()); + command.add("-i"); command.add(commandInterpreter()); command.addAll(commandOptions()); command.add(commandFile);