njnu-seafish commented on code in PR #17362:
URL:
https://github.com/apache/dolphinscheduler/pull/17362#discussion_r2229892356
##########
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/OSUtils.java:
##########
@@ -308,7 +308,8 @@ public static String getSudoCmd(String tenantCode, String
command) {
if (!isSudoEnable() || StringUtils.isEmpty(tenantCode)) {
return command;
}
- return String.format("sudo -u %s %s", tenantCode, command);
+ // Add the -i option to simulate a login, which loads the target
user's environment.
Review Comment:
well, do it
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]