aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcello Coutinho <marcellocoutinho@gmail.com>2011-09-09 16:32:05 -0300
committermarcelloc <marcellocoutinho@gmail.com>2011-09-09 16:32:05 -0300
commit9160fdc3e19cf23c18391fa6ac69bae878422329 (patch)
treeda96f29a442d6a36568c6f58991f94d665e7bc7a
parenta00d0eafe06470632439a6f107144d815e375355 (diff)
downloadpfsense-packages-9160fdc3e19cf23c18391fa6ac69bae878422329.tar.gz
pfsense-packages-9160fdc3e19cf23c18391fa6ac69bae878422329.tar.bz2
pfsense-packages-9160fdc3e19cf23c18391fa6ac69bae878422329.zip
postfix - fix wrong filename call.
-rw-r--r--config/postfix/postfix.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/config/postfix/postfix.inc b/config/postfix/postfix.inc
index cdfc50e3..2e854ead 100644
--- a/config/postfix/postfix.inc
+++ b/config/postfix/postfix.inc
@@ -59,7 +59,7 @@ function sync_relay_recipients($via_cron="cron"){
if($postfix_recipients_config['enable_ldap']){
#validate cront job
if(preg_match("/(\d+)(\w)/",$postfix_recipients_config['freq'],$matches)){
- $cron_sufix="\t*\t*\troot\t/usr/local/bin/php /usr/local/www/postfix_recipientes.php";
+ $cron_sufix="\t*\t*\troot\t/usr/local/bin/php /usr/local/www/postfix_recipients.php";
switch ($matches[2]){
case m:
$cron= "*/".$matches[1]."\t*\t*".$cron_sufix;
@@ -76,9 +76,9 @@ function sync_relay_recipients($via_cron="cron"){
#update cront job file
$crontab = file('/etc/crontab');
foreach ($crontab as $line)
- $new_cron.=(preg_match("/postfix_recipientes.php/",$line)?$cron."\n":$line);
+ $new_cron.=(preg_match("/postfix_recipients.php/",$line)?$cron."\n":$line);
#include if conf does not exist in crontab
- $new_cron.=(!preg_match("/postfix_recipientes.php/",$new_cron)?"\n".$cron."\n\n":"");
+ $new_cron.=(!preg_match("/postfix_recipients.php/",$new_cron)?"\n".$cron."\n\n":"");
file_put_contents("/etc/crontab",$new_cron, LOCK_EX);
#check crontab changes
$md5_new_file = trim(md5_file('/etc/crontab'));
@@ -139,12 +139,12 @@ function sync_relay_recipients($via_cron="cron"){
}
}
#save all relay recipients and reload postfix
- file_put_contents("/usr/local/etc/postfix/relay_recipientes",$relay_ldap_recipients."\n".$relay_recipients, LOCK_EX);
- exec("/usr/local/sbin/postmap /usr/local/etc/postfix/relay_recipientes");
+ file_put_contents("/usr/local/etc/postfix/relay_recipients",$relay_ldap_recipients."\n".$relay_recipients, LOCK_EX);
+ exec("/usr/local/sbin/postmap /usr/local/etc/postfix/relay_recipients");
mwexec("/usr/local/sbin/postfix reload");
}
if($relay_recipients !="" || $relay_ldap_recipients!="")
- return("relay_recipient_maps = hash:/usr/local/etc/postfix/relay_recipientes\n");
+ return("relay_recipient_maps = hash:/usr/local/etc/postfix/relay_recipients\n");
}
function sync_package_postfix() {
global $config;