mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
When reinstalling a package try to start it after to avoid non-expectations from people
This commit is contained in:
parent
3bdc7f5908
commit
8370ee724b
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user