mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
fix moved Core/Shell module
This commit is contained in:
parent
3de21e1ebf
commit
f94692c4f4
@ -42,7 +42,7 @@ $pkg_status = array();
|
||||
if($_POST['action'] == 'pkg_update') {
|
||||
/* Setup Shell variables */
|
||||
$shell_output = array();
|
||||
$shell = new Core\Shell();
|
||||
$shell = new OPNsense\Core\Shell();
|
||||
// execute shell command and collect (only valid) info into named array
|
||||
$shell->exec("/usr/local/opnsense/scripts/pkg_updatecheck.sh",false,false,$shell_output);
|
||||
}
|
||||
@ -50,7 +50,7 @@ if($_POST['action'] == 'pkg_update') {
|
||||
if($_POST['action'] == 'pkg_upgrade') {
|
||||
/* Setup Shell variables */
|
||||
$shell_output = array();
|
||||
$shell = new Core\Shell();
|
||||
$shell = new OPsense\Core\Shell();
|
||||
// execute shell command and collect (only valid) info into named array
|
||||
$shell->exec("/usr/local/opnsense/scripts/pkg_upgrade.sh&",false,false,$shell_output);
|
||||
}
|
||||
|
||||
@ -39,7 +39,7 @@ $file_pkg_status="/tmp/pkg_status.json";
|
||||
if($_POST['action'] == 'pkg_update') {
|
||||
/* Setup Shell variables */
|
||||
$shell_output = array();
|
||||
$shell = new Core\Shell();
|
||||
$shell = new OPNsense\Core\Shell();
|
||||
// execute shell command and collect (only valid) info into named array
|
||||
$shell->exec("/usr/local/opnsense/scripts/pkg_updatecheck.sh",false,false,$shell_output);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user