EricGao888 commented on code in PR #15752:
URL:
https://github.com/apache/dolphinscheduler/pull/15752#discussion_r1533555072
##########
dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-script/src/main/java/org/apache/dolphinscheduler/plugin/alert/script/ScriptSender.java:
##########
@@ -69,6 +69,11 @@ private AlertResult executeShellScript(String title, String
content) {
alertResult.setMessage("shell script not support windows os");
return alertResult;
}
+ if (!scriptPath.endsWith(".sh")) {
+ alertResult.setMessage("shell script is invalid, only support .sh
file");
Review Comment:
Is it possible for users to put something like `reboot` in the script?
--
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]