summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-03-07 03:05:36 +0000
committerColin Smith <colin@pfsense.org>2005-03-07 03:05:36 +0000
commit1dc18caac0fc20d2e204bf8236b15e69bc60e259 (patch)
tree1bc03c1f32b89d51ab9adfbc2758015af52f2f38 /etc
parente4ae3e09c31ed6a1ebed8881e59b12e615743c62 (diff)
downloadpfsense-1dc18caac0fc20d2e204bf8236b15e69bc60e259.zip
pfsense-1dc18caac0fc20d2e204bf8236b15e69bc60e259.tar.gz
Fix additional item syncing.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 55b4f7d..ed73ee2 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -553,15 +553,15 @@ function resync_all_package_configs_bootup($show_message) {
eval($pkg_config['custom_php_resync_config_command']);
if($show_message == true) print "Synced " . $package['name'] . ".\n";
if($pkg_config['additional_files_needed'] != "") {
- foreach($pkg_config['additional_files_needed']['item'] as $item) {
- $pkg_name = strrchr($item, "/");
- if(!preg_match("/\.xml/", $pkg_name)) break;
+ foreach($pkg_config['additional_files_needed']['0']['item'] as $item) {
+ $pkg_name = substr(strrchr($item, "/"),1);
+ if(!preg_match("/\.xml/i", $pkg_name)) break;
if(!file_exists("/usr/local/pkg/" . $pkg_name)) {
if($show_message == true) print "Fetching " . $pkg_name . ".\n";
log_error("Fetching missing configuration XML for " . $pkg_name);
system("/usr/bin/fetch -o /usr/local/pkg/" . $pkg_name . " " . $item);
}
- $item_config = parse_xml_config_pkg("/usr/local/pkg" . $pkg_name, "packagegui");
+ $item_config = parse_xml_config_pkg("/usr/local/pkg/" . $pkg_name, "packagegui");
if($show_message == true) print "Syncing " . $item_config['name'] . ".\n";
if($item_config['custom_php_command_before_form'] <> "")
eval($item_config['custom_php_command_before_form']);
@@ -619,4 +619,4 @@ function gather_altq_queue_stats($dont_return_root_queues) {
return $queue_stats;
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud