From 8370ee724babd9d67b27423ef6323fade2ac8a2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20LU=C3=87I?= Date: Thu, 20 Nov 2014 14:28:49 +0100 Subject: [PATCH] When reinstalling a package try to start it after to avoid non-expectations from people --- usr/local/www/pkg_mgr_install.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr/local/www/pkg_mgr_install.php b/usr/local/www/pkg_mgr_install.php index 4076093b35..2550c5ffe4 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 ""; + 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;