This is an automated email from the ASF dual-hosted git repository.

kerwin pushed a commit to branch 3.1.9-prepare
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/3.1.9-prepare by this push:
     new ed1cf53987 cherry-pick [Fix-14963] Fix the error of using shell task 
to obtain Home variable in Ubuntu system #14964
ed1cf53987 is described below

commit ed1cf53987d9aa0a8b13d8b94aa122faa250c518
Author: zhuangchong <[email protected]>
AuthorDate: Wed Sep 27 10:43:11 2023 +0800

    cherry-pick [Fix-14963] Fix the error of using shell task to obtain Home 
variable in Ubuntu system #14964
---
 .../dolphinscheduler/plugin/task/api/AbstractCommandExecutor.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/AbstractCommandExecutor.java
 
b/dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/AbstractCommandExecutor.java
index 6ae62fe1ea..6a7e4bd803 100644
--- 
a/dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/AbstractCommandExecutor.java
+++ 
b/dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/AbstractCommandExecutor.java
@@ -132,7 +132,7 @@ public abstract class AbstractCommandExecutor {
                 command.add("sudo");
                 command.add("-u");
                 command.add(taskRequest.getTenantCode());
-                command.add("-E");
+                command.add("-i");
             }
         }
         command.add(commandInterpreter());

Reply via email to