Fix webmail config
This commit is contained in:
parent
2f1bba7247
commit
359ebe7509
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue