Browse Source

Added error handling

old-stable
gau1991 11 years ago
parent
commit
14f7ea255e
  1. 13
      src/modules/stack/install/mail/ee_mod_setup_postfix.sh

13
src/modules/stack/install/mail/ee_mod_setup_postfix.sh

@ -4,8 +4,9 @@ function ee_mod_setup_postfix()
{
ee_lib_echo "Configuring Postfix, please wait..."
#Configure Master.cf
sed -i 's/#submission/submission/' /etc/postfix/master.cf
sed -i 's/#smtps/smtps/' /etc/postfix/master.cf
sed -i 's/#submission/submission/' /etc/postfix/master.cf &&
sed -i 's/#smtps/smtps/' /etc/postfix/master.cf \
|| ee_lib_error "Unable to setup details in master.cf file, exit status = " $?
#Configure main.cf
#postconf "#smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache"
@ -37,7 +38,9 @@ function ee_mod_setup_postfix()
# Setting up Postfix MySQL configuration
mkdir -p /etc/postfix/mysql
cp -av /usr/share/easyengine/mail/virtual_alias_maps.cf /etc/postfix/mysql/virtual_alias_maps.cf
cp -av /usr/share/easyengine/mail/virtual_domains_maps.cf /etc/postfix/mysql/virtual_domains_maps.cf
cp -av /usr/share/easyengine/mail/virtual_mailbox_maps.cf /etc/postfix/mysql/virtual_mailbox_maps.cf
cp -av /usr/share/easyengine/mail/virtual_alias_maps.cf /etc/postfix/mysql/virtual_alias_maps.cf &&
cp -av /usr/share/easyengine/mail/virtual_domains_maps.cf /etc/postfix/mysql/virtual_domains_maps.cf &&
cp -av /usr/share/easyengine/mail/virtual_mailbox_maps.cf /etc/postfix/mysql/virtual_mailbox_maps.cf \
ee_lib_error "Unable to copy Postfix MySQL configuration files, exit status = " $?
}

Loading…
Cancel
Save