Browse Source

Logs goto $EE_COMMAND_LOG

old-stable
gau1991 11 years ago
parent
commit
ddf49610bf
  1. 6
      src/modules/stack/install/mail/ee_mod_setup_dovecot.sh
  2. 8
      src/modules/stack/install/mail/ee_mod_setup_postfix.sh
  3. 2
      src/vendor/ee_ven_install_roundcube.sh
  4. 4
      src/vendor/ee_ven_install_vimbadmin.sh
  5. 2
      src/vendor/ee_ven_setup_roundcube.sh
  6. 2
      src/vendor/ee_ven_setup_vimbadmin.sh

6
src/modules/stack/install/mail/ee_mod_setup_dovecot.sh

@ -23,7 +23,7 @@ function ee_mod_setup_dovecot()
|| ee_lib_error "Unable to setup 10-auth.conf file, exit status = " $?
# Configuring dovecot-sql.conf.ext
cp -v /usr/share/easyengine/mail/dovecot-sql.conf.ext /etc/dovecot/dovecot-sql.conf.ext \
cp -v /usr/share/easyengine/mail/dovecot-sql.conf.ext /etc/dovecot/dovecot-sql.conf.ext &>> $EE_COMMAND_LOG \
|| ee_lib_error "Unable to copy dovecot-sql.conf.ext, exit status = " $?
# Configuring auth-sql.conf.ext
@ -32,8 +32,8 @@ function ee_mod_setup_dovecot()
# Configuring 10-master.conf
cp -v /etc/dovecot/conf.d/10-master.conf /etc/dovecot/conf.d/10-master.conf.bak
cp -v /usr/share/easyengine/mail/10-master.conf /etc/dovecot/conf.d/10-master.conf \
cp -v /etc/dovecot/conf.d/10-master.conf /etc/dovecot/conf.d/10-master.conf.bak &>> $EE_COMMAND_LOG
cp -v /usr/share/easyengine/mail/10-master.conf /etc/dovecot/conf.d/10-master.conf &>> $EE_COMMAND_LOG \
|| ee_lib_error "Unable to setup 10-master.conf, exit status = " $?
# Change Dovecot log location

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

@ -2,7 +2,7 @@
function ee_mod_setup_postfix()
{
ee_lib_echo "Configuring Postfix, please wait..."
ee_lib_echo "Setting up Postfix, please wait..."
#Configure Master.cf
sed -i 's/#submission/submission/' /etc/postfix/master.cf &&
sed -i 's/#smtps/smtps/' /etc/postfix/master.cf \
@ -38,9 +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 &>> $EE_COMMAND_LOG && \
cp -av /usr/share/easyengine/mail/virtual_domains_maps.cf /etc/postfix/mysql/virtual_domains_maps.cf &>> $EE_COMMAND_LOG && \
cp -av /usr/share/easyengine/mail/virtual_mailbox_maps.cf /etc/postfix/mysql/virtual_mailbox_maps.cf &>> $EE_COMMAND_LOG \
|| ee_lib_error "Unable to copy Postfix MySQL configuration files, exit status = " $?
}

2
src/vendor/ee_ven_install_roundcube.sh

@ -6,7 +6,7 @@ function ee_ven_install_roundcube()
ee_lib_echo "Installing Roundcube dependencies, please wait..."
$EE_APT_GET install php-pear \
|| ee_lib_error "Unable to install php-pear, exit status = " $?
pear install Mail_Mime Net_SMTP Mail_mimeDecode Net_IDNA2-beta Auth_SASL Net_Sieve Crypt_GPG \
pear install Mail_Mime Net_SMTP Mail_mimeDecode Net_IDNA2-beta Auth_SASL Net_Sieve Crypt_GPG &>> $EE_COMMAND_LOG \
|| ee_lib_error "Unable to install pear packages, exit status = " $?
# Setup Roundcube directory

4
src/vendor/ee_ven_install_vimbadmin.sh

@ -13,9 +13,9 @@ function ee_ven_install_vimbadmin()
# Install Composer
cd /var/www/22222/htdocs/vimbadmin
curl -sS https://getcomposer.org/installer | php \
curl -sS https://getcomposer.org/installer | php &>> $EE_COMMAND_LOG \
|| ee_lib_error "Unable to install Composer, exit status = " $?
php composer.phar install --prefer-dist --no-dev \
php composer.phar install --prefer-dist --no-dev &>> $EE_COMMAND_LOG \
|| ee_lib_error "Unable to install ViMbAdmin, exit status = " $?
# Fix permissions

2
src/vendor/ee_ven_setup_roundcube.sh

@ -21,7 +21,7 @@ function ee_ven_setup_roundcube()
|| ee_lib_error "Unable to import database for Roundcube, exit status = " $?
# Setup configuration for Roundcube
cp -av /var/www/roundcubemail/htdocs/config/config.inc.php.sample /var/www/roundcubemail/htdocs/config/config.inc.php
cp -av /var/www/roundcubemail/htdocs/config/config.inc.php.sample /var/www/roundcubemail/htdocs/config/config.inc.php &>> $EE_COMMAND_LOG
sed -i "s'mysql://roundcube:pass@localhost/roundcubemail'mysql://roundcube:${ee_random}@${EE_MYSQL_HOST}/roundcubemail'" /var/www/roundcubemail/htdocs/config/config.inc.php \
|| ee_lib_error "Unable to setup Roundcube database details in config.inc.php file, exit status = " $?

2
src/vendor/ee_ven_setup_vimbadmin.sh

@ -17,7 +17,7 @@ function ee_ven_setup_vimbadmin()
mysql -e "flush privileges"
# Setup configuration for ViMbAdmin
cp -av /var/www/22222/htdocs/vimbadmin/application/configs/application.ini.dist /var/www/22222/htdocs/vimbadmin/application/configs/application.ini
cp -av /var/www/22222/htdocs/vimbadmin/application/configs/application.ini.dist /var/www/22222/htdocs/vimbadmin/application/configs/application.ini &>> $EE_COMMAND_LOG
sed -i "s/defaults.mailbox.uid = 2000/defaults.mailbox.uid = 5000/" /var/www/22222/htdocs/vimbadmin/application/configs/application.ini &&
sed -i "s/defaults.mailbox.gid = 2000/defaults.mailbox.gid = 5000/" /var/www/22222/htdocs/vimbadmin/application/configs/application.ini &&

Loading…
Cancel
Save