This commit is contained in:
Steven Mondji-Lerider 2013-07-31 11:40:30 +00:00
parent 1911c12d11
commit e48bed562e
1 changed files with 4 additions and 1 deletions

View File

@ -362,10 +362,13 @@ else
postfix_conf=/etc/alternc/postfix/postfix.cf postfix_conf=/etc/alternc/postfix/postfix.cf
fi fi
grep -v '^\ *#' $postfix_conf |while read line ; do grep -v '^\ *#' $postfix_conf |while read line ; do
if echo "$line" | grep -qi '^smtpd_tls_cert_file' ;then if echo "$line" | grep -qi '^smtpd_tls_dcert_file' ;then
line_strip=`echo "$line"|tr -d '[:blank:]'` line_strip=`echo "$line"|tr -d '[:blank:]'`
pattern="*=" pattern="*="
cert_file=${line_strip#$pattern} cert_file=${line_strip#$pattern}
echo $cert_file
echo $line
echo $line_strip
if [ -e $cert_file ];then if [ -e $cert_file ];then
postconf -e "$line" postconf -e "$line"
else else