File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 6868 $BIN /v-delete-mail-domain-ssl $user $domain $restart > /dev/null 2>&1
6969fi
7070cmdstatus=" $? "
71- if [ " $cmdstatus " -ne E_NOTEXIST ]; then
71+ if [ " $cmdstatus " -ne " $ E_NOTEXIST" ]; then
7272 check_result " $cmdstatus " " SSL delete" > /dev/null
7373fi
7474
Original file line number Diff line number Diff line change @@ -528,13 +528,13 @@ rebuild_mail_domain_conf() {
528528 if [ ! -z " $local_ip " ]; then
529529 IP_RDNS=$( is_ip_rdns_valid " $local_ip " )
530530 if [ ! -z " $IP_RDNS " ]; then
531- if [ $( grep -s " ^${domain} :" /etc/exim4/mailhelo.conf) ]; then
531+ if [ -f /etc/exim4/mailhelo.conf ] && [ $( grep -s " ^${domain} :" /etc/exim4/mailhelo.conf) ]; then
532532 sed -i " /^${domain} :/c\\ ${domain} :${IP_RDNS} " /etc/exim4/mailhelo.conf
533533 else
534534 echo ${domain} :${IP_RDNS} >> /etc/exim4/mailhelo.conf
535535 fi
536536 else
537- sed -i " /^${domain} :/d" /etc/exim4/mailhelo.conf
537+ sed -i " /^${domain} :/d" /etc/exim4/mailhelo.conf > /dev/null 2>&1
538538 fi
539539 fi
540540
You can’t perform that action at this time.
0 commit comments