Update postfix destination to add AlternC desktop FQDN when it's not present.\nCloses #1215

This commit is contained in:
Alexis Lahouze 2011-03-13 14:37:37 +00:00
parent 3ceab8d760
commit d43f7fdf9d
1 changed files with 4 additions and 0 deletions

View File

@ -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