From 26571eb1172a0a33cb816b2fe4b3ee96826da32d Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 16 Mar 2021 07:21:30 +0100 Subject: [PATCH] Update install --- scripts/install | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/scripts/install b/scripts/install index 2333b50..3af19da 100644 --- a/scripts/install +++ b/scripts/install @@ -101,18 +101,7 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #================================================= ynh_script_progression --message="Configuring Kanboard..." -# Retrieve admin email -email=$(ynh_user_get_info --username=$admin --key=mail) - -# Copy and edit config.php -config_php="${final_path}/config.php" - -cp ../conf/config.php "$config_php" -ynh_replace_string --match_string="__DB_PWD__" --replace_string="$db_pwd" --target_file="$config_php" -ynh_replace_string --match_string="__DB_NAME__" --replace_string=$db_name --target_file="$config_php" -ynh_replace_string --match_string="__USER__" --replace_string=$admin --target_file="$config_php" -ynh_replace_string --match_string="__EMAIL__" --replace_string=$email --target_file="$config_php" -ynh_replace_string --match_string="__DOMAIN__" --replace_string=$domain --target_file="$config_php" +ynh_add_config --template="../conf/config.php" --destination="$final_path/config.php" #================================================= # DATABASE INITIALIZATION