dollar
This commit is contained in:
parent
5df4635f00
commit
83b9a9a05f
|
@ -38,7 +38,7 @@ function add_email_hostname {
|
||||||
extra_email_hostname="$1"
|
extra_email_hostname="$1"
|
||||||
email_hostnames=$(grep "dc_other_hostnames" /etc/exim4/update-exim4.conf.conf | awk -F "'" '{print $2}')
|
email_hostnames=$(grep "dc_other_hostnames" /etc/exim4/update-exim4.conf.conf | awk -F "'" '{print $2}')
|
||||||
if [[ "$email_hostnames" != *"$extra_email_hostname"* ]]; then
|
if [[ "$email_hostnames" != *"$extra_email_hostname"* ]]; then
|
||||||
sed -i "s|dc_other_hostnames=.*|dc_other_hostnames='$email_hostnames;extra_email_hostname'|g" /etc/exim4/update-exim4.conf.conf
|
sed -i "s|dc_other_hostnames=.*|dc_other_hostnames='$email_hostnames;$extra_email_hostname'|g" /etc/exim4/update-exim4.conf.conf
|
||||||
update-exim4.conf
|
update-exim4.conf
|
||||||
dpkg-reconfigure --frontend noninteractive exim4-config
|
dpkg-reconfigure --frontend noninteractive exim4-config
|
||||||
systemctl restart saslauthd
|
systemctl restart saslauthd
|
||||||
|
|
Loading…
Reference in New Issue