Commit 753bb32e authored by Jos Schellevis's avatar Jos Schellevis

And more upgrade stuff...

parent 971a7c50
......@@ -31,7 +31,8 @@ if [ "$pkg_running" == "" ]; then
rm /tmp/pkg_upgrade.progress
fi
# start pkg upgrade
pkg upgrade -y > /tmp/pkg_upgrade.progress
echo '***STARTING UPGRADE***' > /tmp/pkg_upgrade.progress
pkg upgrade -y >> /tmp/pkg_upgrade.progress
echo '***DONE***' >> /tmp/pkg_upgrade.progress
else
echo 'Upgrade already in progress'
......
......@@ -50,7 +50,7 @@ if($_POST['action'] == 'pkg_update') {
if($_POST['action'] == 'pkg_upgrade') {
/* Setup Shell variables */
$shell_output = array();
$shell = new OPsense\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_upgrade.sh > /dev/null 2 > /dev/null < /dev/null &",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