aboutsummaryrefslogtreecommitdiffstats
path: root/config/dansguardian/dansguardian.inc
diff options
context:
space:
mode:
authormarcelloc <marcellocoutinho@gmail.com>2012-01-27 17:39:19 -0200
committermarcelloc <marcellocoutinho@gmail.com>2012-01-27 17:39:19 -0200
commit0dd332c1958b4c59c27b304e89383d1ced90e2d7 (patch)
tree7441aca38746cd850590dfb84df38a93a1de8c9b /config/dansguardian/dansguardian.inc
parentf1415041a0c45bd986772356dc72581fe716de99 (diff)
downloadpfsense-packages-0dd332c1958b4c59c27b304e89383d1ced90e2d7.tar.gz
pfsense-packages-0dd332c1958b4c59c27b304e89383d1ced90e2d7.tar.bz2
pfsense-packages-0dd332c1958b4c59c27b304e89383d1ced90e2d7.zip
dansguardian - fix missing default blacklist xml import
Diffstat (limited to 'config/dansguardian/dansguardian.inc')
-rwxr-xr-xconfig/dansguardian/dansguardian.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/config/dansguardian/dansguardian.inc b/config/dansguardian/dansguardian.inc
index ab25c7ae..5e0d4631 100755
--- a/config/dansguardian/dansguardian.inc
+++ b/config/dansguardian/dansguardian.inc
@@ -656,9 +656,13 @@ EOF;
mwexec_bg("/root/dansguardian_custom.script");
else
mwexec_bg("/usr/local/bin/php /usr/local/www/dansguardian.php fetch_blacklist");
- mwexec_bg("/usr/local/bin/php /usr/local/www/dansguardian.php udpate_lists");
+ mwexec_bg("/usr/local/bin/php /usr/local/www/dansguardian.php update_lists");
}
+ #Import default blacklists
+ if (!is_array($config['installedpackages']['dansguardianblacklistsurls']['config']))
+ mwexec_bg("/usr/local/bin/php /usr/local/www/dansguardian.php update_lists");
+
#get clamav user
$cconf="/usr/local/etc/clamd.conf";
$cconf_file=file_get_contents($cconf);