When reinstalling a package try to start it after to avoid non-expectations from people

This commit is contained in:
Ermal LUÇI 2014-11-20 14:28:49 +01:00
parent 3bdc7f5908
commit 8370ee724b

View File

@ -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;