summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-03 00:53:47 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-03 00:53:47 +0000
commit7e98bb788fa94451b7fe0391f3bbf793c25c1590 (patch)
treec306b802bdd44b1511cdd3c11b940ddf74f0b96b /etc
parent05d7b2ece8cc3b0f642e844101ca6007951c3e55 (diff)
downloadpfsense-7e98bb788fa94451b7fe0391f3bbf793c25c1590.zip
pfsense-7e98bb788fa94451b7fe0391f3bbf793c25c1590.tar.gz
* Output more diagnostic messages during sync.
* Only call the packages custom_php_resync_config_command
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc6
1 files changed, 2 insertions, 4 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index e34acbe..48eb939 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -528,14 +528,12 @@ function resync_all_package_configs_bootup($show_message) {
foreach($config['installedpackages']['package'] as $package) {
if($show_message == true) print "Syncing " . $package['name'] . ".\n";
if(!file_exists("/usr/local/pkg/" . $package['configurationfile'])) {
- log_error("Fetching missing configuration XML for " . $package);
+ if($show_message == true) print "Fetching " . $package['configurationfile'] . ".\n";
+ log_error("Fetching missing configuration XML for " . $package['name']);
system("/usr/bin/fetch -o /usr/local/pkg/" . $package['configurationfile'] . " http://www.pfsense.com/packages/config/" . $package['configurationfile']);
}
$pkg_config = parse_xml_config_pkg("/usr/local/pkg/" . $package['configurationfile'], "packagegui");
if($pkg_config['custom_php_command_before_form'] <> "") eval($pkg_config['custom_php_command_before_form']);
- if($pkg_config['custom_add_php_command'] <> "") eval($pkg_config['custom_add_php_command']);
- if($pkg_config['custom_add_php_command_late'] <> "") eval($pkg_config['custom_add_php_command_late']);
- if($pkg_config['custom_php_install_command'] <> "") eval($pkg_config['custom_php_install_command']);
if($pkg_config['custom_php_resync_config_command'] <> "") eval($pkg_config['custom_php_resync_config_command']);
if($show_message == true) print "Synced " . $package['name'] . ".\n";
}
OpenPOWER on IntegriCloud