From eb136be2ad1749c34e90994e6b85eb3e33d1501b Mon Sep 17 00:00:00 2001 From: Charlie Root Date: Tue, 23 Dec 2014 11:47:16 +0000 Subject: [PATCH] Small fix for background process pkg_upgrade --- src/opnsense/scripts/pkg_upgrade.sh | 2 +- src/www/system_firmware_check.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/opnsense/scripts/pkg_upgrade.sh b/src/opnsense/scripts/pkg_upgrade.sh index 7d3cd6e89..7c6ec3e83 100755 --- a/src/opnsense/scripts/pkg_upgrade.sh +++ b/src/opnsense/scripts/pkg_upgrade.sh @@ -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' diff --git a/src/www/system_firmware_check.php b/src/www/system_firmware_check.php index 851150758..892ada9c5 100644 --- a/src/www/system_firmware_check.php +++ b/src/www/system_firmware_check.php @@ -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' ) {