fix moved Core/Shell module

This commit is contained in:
Ad Schellevis 2014-12-29 11:33:37 +00:00
parent 3de21e1ebf
commit f94692c4f4
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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);
}