fix jstop

This commit is contained in:
olevole
2021-10-17 01:16:30 +03:00
parent a268022aca
commit 136e0aae31
2 changed files with 5 additions and 2 deletions

View File

@@ -23,6 +23,9 @@ class CBSD {
die("Shell escape attempt");
}
// olevole: to generic log_() function
// file_put_contents('/tmp/clonos-run_'.date("j.n.Y").'.log', $full_cmd . "\n", FILE_APPEND);
$process = proc_open($full_cmd,$specs,$pipes,null,null);
$error=false;

View File

@@ -1012,7 +1012,7 @@ class ClonOS {
function ccmd_jailStop(){
//$cbsd_queue_name=trim($this->_vars['path'],'/');
$res=CBSD::run(
'task owner='.$username.' mode=new {cbsd_loc} jstop inter=0 jname=%s',
'task owner=%s mode=new {cbsd_loc} jstop inter=0 jname=%s',
array($this->_user_info['username'], $this->_vars['form_data']['jname'])
);
//.' cbsd_queue_name=/clonos/'.$cbsd_queue_name.'/'); // autoflush=2
@@ -2820,4 +2820,4 @@ class ClonOS {
return $html;
}
}
}