Fix in linux
This commit is contained in:
parent
3fbd949790
commit
91ffd2d9d4
1 changed files with 2 additions and 32 deletions
34
vendor/phangoapp/leviathanutils/src/Linux.php
vendored
34
vendor/phangoapp/leviathanutils/src/Linux.php
vendored
|
|
@ -11,7 +11,7 @@ class Linux {
|
|||
|
||||
for($x=1;$x<count($arr_command);$x++) {
|
||||
|
||||
$arr_command[$x]=escapeshellcmd($arr_command[$x]);
|
||||
// $arr_command[$x]=escapeshellcmd($arr_command[$x]);
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -68,36 +68,6 @@ class Linux {
|
|||
|
||||
}
|
||||
|
||||
/*$cmd=implode(' ', $arr_command);
|
||||
|
||||
$a = popen($cmd, 'r');
|
||||
|
||||
while($b = fgets($a, 2048)) {
|
||||
|
||||
echo $b;
|
||||
|
||||
//ob_flush();flush();
|
||||
|
||||
}
|
||||
|
||||
$result=pclose($a);
|
||||
|
||||
if($result>0) {
|
||||
|
||||
echo 'Error executing command '.$cmd."\n";
|
||||
|
||||
if($exit_if_error) {
|
||||
|
||||
exit($result);
|
||||
|
||||
}
|
||||
else {
|
||||
|
||||
return $result;
|
||||
|
||||
}
|
||||
|
||||
}*/
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -282,7 +252,7 @@ class Linux {
|
|||
|
||||
}
|
||||
|
||||
Linux::shell_command(["sudo sed -i", "s/".$arr_sed[$distro][0]."/".$arr_sed[$distro][1]."/g", $arr_sed[$distro][2]]);
|
||||
Linux::shell_command(["sudo sed -i", "s/".$arr_sed[$distro][0]."/".$arr_sed[$distro][1]."/g ".$arr_sed[$distro][2]]);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue