This commit is contained in:
Alan Garcia 2014-03-03 08:51:12 +00:00
parent 01df211091
commit dc6a7e8450
1 changed files with 4 additions and 2 deletions

View File

@ -484,10 +484,12 @@ fi
####################################################################### #######################################################################
# populate alternc database with the mailname used by postfix to send mail for each vhost # populate alternc database with the mailname used by postfix to send mail for each vhost
# #
mailname=`cat /etc/mailname` # If mailname does not exist, create it. Fix #1495
mysql_query "update variable SET value='"$mailname"' where name='mailname_bounce';" test -e "/etc/mailname" || hostname -f > "/etc/mailname"
# Allow for all the users to view /etc/mailname # Allow for all the users to view /etc/mailname
chmod +r "/etc/mailname" chmod +r "/etc/mailname"
mailname=`cat /etc/mailname`
mysql_query "update variable SET value='"$mailname"' where name='mailname_bounce';"
####################################################################### #######################################################################
# Save installed files to check them during next install # Save installed files to check them during next install