diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-10-19 03:24:34 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-10-19 03:24:34 +0000 |
commit | 64a0b4e4ec8d611a49e6fccc4457f0c67b9372d4 (patch) | |
tree | 70fc07397d3267d63a479c4eae7685b4da8732e9 | |
parent | 5025a56c9f3506a112155129ae787958762683f8 (diff) | |
download | pfsense-64a0b4e4ec8d611a49e6fccc4457f0c67b9372d4.zip pfsense-64a0b4e4ec8d611a49e6fccc4457f0c67b9372d4.tar.gz |
Only attempt to run plugins if directory exists
-rw-r--r-- | etc/inc/config.inc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc index 7eca3cc..d08cd2c 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -2081,10 +2081,12 @@ function write_config($desc="Unknown", $backup = true) { config_unlock(); - /* process packager manager custom rules */ - update_filter_reload_status("Running plugins"); - run_plugins("/usr/local/pkg/write_config/"); - update_filter_reload_status("Plugins completed."); + if(is_dir("/usr/local/pkg/write_config/")) { + /* process packager manager custom rules */ + update_filter_reload_status("Running plugins"); + run_plugins("/usr/local/pkg/write_config/"); + update_filter_reload_status("Plugins completed."); + } return $config; } |