aboutsummaryrefslogtreecommitdiffstats
path: root/config/bind/bind.inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@pfSense.org>2014-02-23 17:46:53 -0300
committerRenato Botelho <garga@pfSense.org>2014-02-23 17:46:53 -0300
commita3b8ffd89df4ee1440d0053635b9eaf07527da9a (patch)
tree7ca95654319a06eec40ec594986be7f781132ad1 /config/bind/bind.inc
parentec8c498ed040d1f02617be21c452921622ab5675 (diff)
parent2f3f6ecaa9ef5cae9160d1071a80f4f26938d9ed (diff)
downloadpfsense-packages-a3b8ffd89df4ee1440d0053635b9eaf07527da9a.tar.gz
pfsense-packages-a3b8ffd89df4ee1440d0053635b9eaf07527da9a.tar.bz2
pfsense-packages-a3b8ffd89df4ee1440d0053635b9eaf07527da9a.zip
Merge pull request #603 from crocomo/bind
bind - logging facility & typos
Diffstat (limited to 'config/bind/bind.inc')
-rw-r--r--config/bind/bind.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/bind/bind.inc b/config/bind/bind.inc
index 40d626db..1818b225 100644
--- a/config/bind/bind.inc
+++ b/config/bind/bind.inc
@@ -209,8 +209,9 @@ EOD;
$restart_syslog=0;
foreach ($syslog_files as $syslog_file){
$syslog_file_data=file_get_contents($syslog_file);
- if (!preg_match("/dnsmasq,named,filterdns/",$syslog_file_data)){
+ if ( !preg_match("/dnsmasq,named,filterdns/",$syslog_file_data) || !preg_match("/'dnsmasq','named','filterdns'/",$syslog_file_data) ) {
$syslog_file_data=preg_replace("/dnsmasq,filterdns/","dnsmasq,named,filterdns",$syslog_file_data);
+ $syslog_file_data=preg_replace("/'dnsmasq','filterdns'/","'dnsmasq','named','filterdns'",$syslog_file_data);
file_put_contents($syslog_file,$syslog_file_data);
$restart_syslog++;
}