diff options
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/pkg_mgr_install.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/usr/local/www/pkg_mgr_install.php b/usr/local/www/pkg_mgr_install.php index 5740fc0..3a0451b 100755 --- a/usr/local/www/pkg_mgr_install.php +++ b/usr/local/www/pkg_mgr_install.php @@ -291,6 +291,19 @@ if ($pkgent['pfsense_package_base_url'] <> "") { fwrite($fd_log, "Executing: cd /tmp/ && /usr/sbin/pkg_add -r " . $pkgent['pfsense_package_base_url'] . "/" . $pkgent['pfsense_package'] . "\n" . $text); } +$status = exec_command_and_return_text("ls /var/db/pkg | grep " . $pkgent['name']); +fwrite($fd_log, "ls /var/db/pkg | grep " . $pkgent['name'] . "\n" . $status); +if($status <> "") { + update_status("Package installed. Lets finish up."); + fwrite($fd_log, "Package installed. Lets finish up.\n"); +} else { + fwrite($fd_log, "Package WAS NOT installed properly.\n"); + fclose($fd_log); + $filecontents = exec_command_and_return_text("cat " . $file); + update_status("Package WAS NOT installed properly...Something went wrong..\n" . $filecontents); + die; +} + update_progress_bar($pb_percent); $pb_percent += 10; |