Skip to content

Commit 3bd1ac9

Browse files
author
Kristan Kenney
authored
Merge pull request hestiacp#991 from Lupul/fix-200723
Fix 200723
2 parents 348d128 + 3b4c9aa commit 3bd1ac9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bin/v-delete-letsencrypt-domain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ else
6868
$BIN/v-delete-mail-domain-ssl $user $domain $restart >/dev/null 2>&1
6969
fi
7070
cmdstatus="$?"
71-
if [ "$cmdstatus" -ne E_NOTEXIST ]; then
71+
if [ "$cmdstatus" -ne "$E_NOTEXIST" ]; then
7272
check_result "$cmdstatus" "SSL delete" >/dev/null
7373
fi
7474

func/rebuild.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)