mirror of https://github.com/jumpserver/jumpserver
Merge pull request #9443 from jumpserver/pr@dev@fix_execute_shell_chdir_invalid
fix: 解决执行命令作业指定当前路径的问题pull/9446/head
commit
47f23a1b9c
|
@ -176,9 +176,7 @@ class JobExecution(JMSOrgBaseModel):
|
|||
|
||||
shell = self.current_job.args
|
||||
if self.current_job.chdir:
|
||||
if module == self.current_job.module:
|
||||
shell += " path={}".format(self.current_job.chdir)
|
||||
else:
|
||||
if module == "shell":
|
||||
shell += " chdir={}".format(self.current_job.chdir)
|
||||
if self.current_job.module in ['python']:
|
||||
shell += " executable={}".format(self.current_job.module)
|
||||
|
|
Loading…
Reference in New Issue