From bbe101d3fcf820b4c74640c5b0e820e6b7daef5b Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 30 Mar 2021 16:34:35 +0200 Subject: [PATCH] Update install --- scripts/install | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 3db75f2..4b4954c 100755 --- a/scripts/install +++ b/scripts/install @@ -64,6 +64,7 @@ ynh_install_app_dependencies $pkg_dependencies ynh_script_progression --message="Creating a MySQL database..." db_name=$(ynh_sanitize_dbid --db_name=$app) +db_user=$db_name ynh_app_setting_set --app=$app --key=db_name --value=$db_name ynh_mysql_setup_db --db_user=$db_name --db_name=$db_name @@ -106,10 +107,6 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #================================================= # Adding the details of the database to the config file -# ynh_replace_string --match_string="__DB_USER__" --replace_string="$db_name" --target_file="../conf/config.ini.php" -# ynh_replace_string --match_string="__DB_PWD__" --replace_string="$db_pwd" --target_file="../conf/config.ini.php" -# ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --target_file="../conf/config.ini.php" - ynh_add_config --template="../conf/config.ini.php" --destination="$final_path/data/config.ini.php" # # Copy the config file to the final path