mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 09:34:39 +00:00
Small fix for background process pkg_upgrade
This commit is contained in:
parent
a2e63b70aa
commit
eb136be2ad
@ -7,7 +7,7 @@ if [ "$pkg_running" == "" ]; then
|
||||
rm /tmp/pkg_upgrade.progress
|
||||
fi
|
||||
# start pkg upgrade
|
||||
pkg upgrade -y > /tmp/pkg_upgrade.progress &
|
||||
pkg upgrade -y > /tmp/pkg_upgrade.progress
|
||||
echo '***DONE***' >> /tmp/pkg_upgrade.progress
|
||||
else
|
||||
echo 'Upgrade already in progress'
|
||||
|
||||
@ -52,7 +52,7 @@ if($_POST['action'] == 'pkg_upgrade') {
|
||||
$shell_output = array();
|
||||
$shell = new 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);
|
||||
$shell->exec("/usr/local/opnsense/scripts/pkg_upgrade.sh&",false,false,$shell_output);
|
||||
}
|
||||
|
||||
if($_POST['action'] == 'update_status' ) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user