mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
And more upgrade stuff...
This commit is contained in:
parent
971a7c506c
commit
753bb32ea3
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user