mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix #9071: Make sure pkg metadata is updated when repo config changes
This commit is contained in:
parent
15303d6400
commit
db8a42e5ea
@ -41,6 +41,7 @@ require_once("guiconfig.inc");
|
||||
require_once("functions.inc");
|
||||
require_once("filter.inc");
|
||||
require_once("shaper.inc");
|
||||
require_once("pkg-utils.inc");
|
||||
|
||||
$rrddbpath = "/var/db/rrd";
|
||||
$rrdtool = "/usr/bin/nice -n20 /usr/local/bin/rrdtool";
|
||||
@ -322,6 +323,7 @@ if ($_POST) {
|
||||
|
||||
if ($pkg_repo_restored) {
|
||||
write_config(gettext("Removing pkg repository set after restoring full configuration"));
|
||||
pkg_update(true);
|
||||
}
|
||||
|
||||
if (file_exists("/boot/loader.conf")) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user