Commit f94692c4 authored by Ad Schellevis's avatar Ad Schellevis

fix moved Core/Shell module

parent 3de21e1e
...@@ -42,7 +42,7 @@ $pkg_status = array(); ...@@ -42,7 +42,7 @@ $pkg_status = array();
if($_POST['action'] == 'pkg_update') { if($_POST['action'] == 'pkg_update') {
/* Setup Shell variables */ /* Setup Shell variables */
$shell_output = array(); $shell_output = array();
$shell = new Core\Shell(); $shell = new OPNsense\Core\Shell();
// execute shell command and collect (only valid) info into named array // execute shell command and collect (only valid) info into named array
$shell->exec("/usr/local/opnsense/scripts/pkg_updatecheck.sh",false,false,$shell_output); $shell->exec("/usr/local/opnsense/scripts/pkg_updatecheck.sh",false,false,$shell_output);
} }
...@@ -50,7 +50,7 @@ if($_POST['action'] == 'pkg_update') { ...@@ -50,7 +50,7 @@ if($_POST['action'] == 'pkg_update') {
if($_POST['action'] == 'pkg_upgrade') { if($_POST['action'] == 'pkg_upgrade') {
/* Setup Shell variables */ /* Setup Shell variables */
$shell_output = array(); $shell_output = array();
$shell = new Core\Shell(); $shell = new OPsense\Core\Shell();
// execute shell command and collect (only valid) info into named array // execute shell command and collect (only valid) info into named array
$shell->exec("/usr/local/opnsense/scripts/pkg_upgrade.sh&",false,false,$shell_output); $shell->exec("/usr/local/opnsense/scripts/pkg_upgrade.sh&",false,false,$shell_output);
} }
......
...@@ -39,7 +39,7 @@ $file_pkg_status="/tmp/pkg_status.json"; ...@@ -39,7 +39,7 @@ $file_pkg_status="/tmp/pkg_status.json";
if($_POST['action'] == 'pkg_update') { if($_POST['action'] == 'pkg_update') {
/* Setup Shell variables */ /* Setup Shell variables */
$shell_output = array(); $shell_output = array();
$shell = new Core\Shell(); $shell = new OPNsense\Core\Shell();
// execute shell command and collect (only valid) info into named array // execute shell command and collect (only valid) info into named array
$shell->exec("/usr/local/opnsense/scripts/pkg_updatecheck.sh",false,false,$shell_output); $shell->exec("/usr/local/opnsense/scripts/pkg_updatecheck.sh",false,false,$shell_output);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment