Browse Source

Fix the error of using shell task to obtain Home variable in Ubuntu system. (#14964)

3.2.1-prepare
Kerwin 1 year ago committed by GitHub
parent
commit
6de1e2c1b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/shell/BaseLinuxShellInterceptorBuilder.java

2
dolphinscheduler-task-plugin/dolphinscheduler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/shell/BaseLinuxShellInterceptorBuilder.java

@ -129,7 +129,7 @@ public abstract class BaseLinuxShellInterceptorBuilder<T extends BaseLinuxShellI
bootstrapCommand.add("-u"); bootstrapCommand.add("-u");
bootstrapCommand.add(runUser); bootstrapCommand.add(runUser);
} }
bootstrapCommand.add("-E"); bootstrapCommand.add("-i");
bootstrapCommand.add(shellAbsolutePath().toString()); bootstrapCommand.add(shellAbsolutePath().toString());
return bootstrapCommand; return bootstrapCommand;
} }

Loading…
Cancel
Save