We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 348d128 commit ed0f864Copy full SHA for ed0f864
func/rebuild.sh
@@ -528,13 +528,13 @@ rebuild_mail_domain_conf() {
528
if [ ! -z "$local_ip" ]; then
529
IP_RDNS=$(is_ip_rdns_valid "$local_ip")
530
if [ ! -z "$IP_RDNS" ]; then
531
- if [ $(grep -s "^${domain}:" /etc/exim4/mailhelo.conf) ]; then
+ if [ -f /etc/exim4/mailhelo.conf ] && [ $(grep -s "^${domain}:" /etc/exim4/mailhelo.conf) ]; then
532
sed -i "/^${domain}:/c\\${domain}:${IP_RDNS}" /etc/exim4/mailhelo.conf
533
else
534
echo ${domain}:${IP_RDNS} >> /etc/exim4/mailhelo.conf
535
fi
536
537
- sed -i "/^${domain}:/d" /etc/exim4/mailhelo.conf
+ sed -i "/^${domain}:/d" /etc/exim4/mailhelo.conf >/dev/null 2>&1
538
539
540
0 commit comments