Fix webmail config

This commit is contained in:
Bob Mottram 2016-04-25 21:37:05 +01:00
parent 2f1bba7247
commit 359ebe7509
1 changed files with 2 additions and 1 deletions

View File

@ -8907,7 +8907,7 @@ function install_webmail {
if [ ! -f /var/www/webmail/config/config.inc.php ]; then if [ ! -f /var/www/webmail/config/config.inc.php ]; then
# generate the configuration # generate the configuration
echo '<?php' > /var/www/webmail/config/config.inc.php echo '<?php' > /var/www/webmail/config/config.inc.php
echo "\$config['db_dsnw'] = 'mysql://webmailadmin:${WEBMAIL_ADMIN_PASSWORD}@localhost/webmail';" >> /var/www/webmail/config/config.inc.php echo "\$config['db_dsnw'] = 'mysql://root:${MARIADB_PASSWORD}@localhost/webmail';" >> /var/www/webmail/config/config.inc.php
echo "\$config['default_host'] = 'localhost';" >> /var/www/webmail/config/config.inc.php echo "\$config['default_host'] = 'localhost';" >> /var/www/webmail/config/config.inc.php
echo "\$config['support_url'] = '';" >> /var/www/webmail/config/config.inc.php echo "\$config['support_url'] = '';" >> /var/www/webmail/config/config.inc.php
WEBMAIL_DES_KEY="$(openssl rand -base64 32 | cut -c1-25)" WEBMAIL_DES_KEY="$(openssl rand -base64 32 | cut -c1-25)"
@ -8915,6 +8915,7 @@ function install_webmail {
echo "\$config['product_name'] = '${PROJECT_NAME}';" >> /var/www/webmail/config/config.inc.php echo "\$config['product_name'] = '${PROJECT_NAME}';" >> /var/www/webmail/config/config.inc.php
echo "\$config['plugins'] = array('enigma');" >> /var/www/webmail/config/config.inc.php echo "\$config['plugins'] = array('enigma');" >> /var/www/webmail/config/config.inc.php
echo "\$config['mime_param_folding'] = 0;" >> /var/www/webmail/config/config.inc.php echo "\$config['mime_param_folding'] = 0;" >> /var/www/webmail/config/config.inc.php
echo "\$config['enable_installer'] = false;" >> /var/www/webmail/config/config.inc.php
fi fi
chown -R www-data:www-data $WEBMAIL_PATH chown -R www-data:www-data $WEBMAIL_PATH