diff --git a/conf/config.inc.php b/conf/config.inc.php index 9b4d354..2afb781 100644 --- a/conf/config.inc.php +++ b/conf/config.inc.php @@ -44,7 +44,7 @@ $config['db_dsnw'] = 'mysql://__DBUSER__:__DBPASS__@localhost/__DBNAME__'; // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part) // %s - domain name after the '@' from e-mail address provided at login screen // For example %n = mail.domain.tld, %t = domain.tld -$config['default_host'] = 'localhost'; +$config['default_host'] = '__DOMAIN__'; // SMTP server host (for sending mails). // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls:// diff --git a/scripts/install b/scripts/install index c96f525..508aae9 100644 --- a/scripts/install +++ b/scripts/install @@ -130,6 +130,7 @@ ynh_replace_string --match_string="__DBUSER__" --replace_string="$db_name" --tar ynh_replace_string --match_string="__DBPASS__" --replace_string="$db_pwd" --target_file="$rc_conf" ynh_replace_string --match_string="__DBNAME__" --replace_string="$db_name" --target_file="$rc_conf" ynh_replace_string --match_string="__LANGUAGE__" --replace_string="$language" --target_file="$rc_conf" +ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$rc_conf" #================================================= # INSTALL ADDITIONAL PLUGINS diff --git a/scripts/upgrade b/scripts/upgrade index 3a6f394..4650c0c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -155,7 +155,8 @@ then ynh_replace_string --match_string="__DBPASS__" --replace_string="$db_pwd" --target_file="$rc_conf" ynh_replace_string --match_string="__DBNAME__" --replace_string="$db_name" --target_file="$rc_conf" ynh_replace_string --match_string="__LANGUAGE__" --replace_string="$language" --target_file="$rc_conf" - + ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$rc_conf" + #================================================= # UPDATE DEPENDENCIES WITH COMPOSER #=================================================