diff --git a/conf/config.ini.php b/conf/config.ini.php index beda577..0d3b9c6 100644 --- a/conf/config.ini.php +++ b/conf/config.ini.php @@ -2,7 +2,8 @@ ; file automatically generated or modified by Matomo; you can manually override the default values in global.ini.php by redefining them in this file. [database] host = "127.0.0.1" -username = "__DB__" +username = "__DB_NAME__" password = "__DB_PASSWORD__" -dbname = "__DB__" +dbname = "__DB_NAME__" tables_prefix = "matomo_" + diff --git a/scripts/install b/scripts/install index 8115366..7856e1e 100755 --- a/scripts/install +++ b/scripts/install @@ -113,6 +113,11 @@ ynh_replace_string --match_string="__PHPVERSION__" --replace_string="$phpversion cp -f ../conf/cron /etc/cron.d/$app +ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --target_file="../conf/config.ini.php" +ynh_replace_string --match_string="__DB_PASSWORD__" --replace_string="$db_pwd" --target_file="../conf/config.ini.php" + +cp -f ../conf/config.ini.php $final_path/config/config.ini.php + #================================================= # GENERIC FINALIZATION #=================================================