aboutsummaryrefslogtreecommitdiffstats
path: root/config/dansguardian/dansguardian.inc
diff options
context:
space:
mode:
authorMarcello Coutinho <marcellocoutinho@gmail.com>2013-04-28 22:37:17 -0300
committerMarcello Coutinho <marcellocoutinho@gmail.com>2013-04-28 22:37:17 -0300
commit856c26be57cee7edd483ba19146a6ac92083e34e (patch)
tree7fd86bafd3020db5aca1c730bcf7795d9d6bf52e /config/dansguardian/dansguardian.inc
parent845bbd12e24f26f2141c164ce22c2a1b78664933 (diff)
downloadpfsense-packages-856c26be57cee7edd483ba19146a6ac92083e34e.tar.gz
pfsense-packages-856c26be57cee7edd483ba19146a6ac92083e34e.tar.bz2
pfsense-packages-856c26be57cee7edd483ba19146a6ac92083e34e.zip
dansguardian - fix clamav check and fetch_blacklist typo
Diffstat (limited to 'config/dansguardian/dansguardian.inc')
-rwxr-xr-xconfig/dansguardian/dansguardian.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/dansguardian/dansguardian.inc b/config/dansguardian/dansguardian.inc
index 505cb0f3..b1c79a97 100755
--- a/config/dansguardian/dansguardian.inc
+++ b/config/dansguardian/dansguardian.inc
@@ -1133,8 +1133,8 @@ EOF;
$cconf_file=file_get_contents($cconf);
if (preg_match("/User (\w+)/",$cconf_file,$matches)){
#clamd script file
- $clamav_script='/usr/local/etc/rc.d/clamav-clamd';
- $script_file=file($clamav_script);
+ $script='/usr/local/etc/rc.d/clamav-clamd';
+ $script_file=file($script);
$new_clamav_startup="";
$cpreg_m[0]="@NO@";
$cpreg_m[1]="@/usr/local@";
@@ -1154,7 +1154,7 @@ EOF;
$new_clamav_startup.=preg_replace($cpreg_m,$cpreg_r,$script_line);
}
}
- file_put_contents($clamav_script, $new_clamav_startup, LOCK_EX);
+ file_put_contents($script, $new_clamav_startup, LOCK_EX);
chmod ($script,0755);
if (file_exists('/var/run/dansguardian.pid') && is_process_running('clamd')){