mirror of https://github.com/jumpserver/jumpserver
fix: 解决执行命令作业指定当前路径的问题
parent
a3baac6763
commit
462dc2543b
|
@ -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