summaryrefslogtreecommitdiffstats
path: root/usr/local/www/pkg_mgr_install.php
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2014-11-20 14:28:49 +0100
committerErmal LUÇI <eri@pfsense.org>2014-11-20 14:29:55 +0100
commit8370ee724babd9d67b27423ef6323fade2ac8a2c (patch)
tree88a1759fbdbe354223570441fa0ac8a87db48b7c /usr/local/www/pkg_mgr_install.php
parent3bdc7f5908ad19af2fc31b873cd07eadeb801bd5 (diff)
downloadpfsense-8370ee724babd9d67b27423ef6323fade2ac8a2c.zip
pfsense-8370ee724babd9d67b27423ef6323fade2ac8a2c.tar.gz
When reinstalling a package try to start it after to avoid non-expectations from people
Diffstat (limited to 'usr/local/www/pkg_mgr_install.php')
-rw-r--r--usr/local/www/pkg_mgr_install.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/pkg_mgr_install.php b/usr/local/www/pkg_mgr_install.php
index 4076093..2550c5f 100644
--- a/usr/local/www/pkg_mgr_install.php
+++ b/usr/local/www/pkg_mgr_install.php
@@ -245,6 +245,7 @@ if ($_GET) {
@file_put_contents("/tmp/{$pkgid}.info", $static_output);
$pkgid = htmlspecialchars($pkgid);
echo "<script type='text/javascript'>document.location=\"pkg_mgr_install.php?mode=installedinfo&pkg={$pkgid}\";</script>";
+ send_event(service restart packages");
break;
case 'reinstallall':
if (is_array($config['installedpackages']) && is_array($config['installedpackages']['package'])) {
@@ -263,6 +264,7 @@ if ($_GET) {
$static_output .= "\n" . gettext("All packages reinstalled.");
update_output_window($static_output);
filter_configure();
+ send_event(service restart packages");
} else
update_output_window(gettext("No packages are installed."));
break;
OpenPOWER on IntegriCloud