Update postfix destination to add AlternC desktop FQDN when it's not present.\nCloses #1215
This commit is contained in:
parent
3ceab8d760
commit
d43f7fdf9d
|
@ -258,6 +258,10 @@ do
|
||||||
postconf -e "$line"
|
postconf -e "$line"
|
||||||
done < $postfix_conf
|
done < $postfix_conf
|
||||||
|
|
||||||
|
# Bug #1215: configure mydestination when $FQDN is not in
|
||||||
|
OLDDESTINATION=`postconf mydestination | awk -F '=' '{print $2}'`
|
||||||
|
echo "$OLDDESTINATION" | grep -q -v "$FQDN" && postconf -e "mydestination = $FQDN, $OLDDESTINATION"
|
||||||
|
|
||||||
if [ -e /etc/courier/authmysqlrc ] ; then
|
if [ -e /etc/courier/authmysqlrc ] ; then
|
||||||
chown root:root /etc/courier/authmysqlrc
|
chown root:root /etc/courier/authmysqlrc
|
||||||
chmod 640 /etc/courier/authmysqlrc
|
chmod 640 /etc/courier/authmysqlrc
|
||||||
|
|
Loading…
Reference in New Issue