From 9dc5a308f9c3d1e6aaba18190c83d41dab32316f Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 26 Mar 2021 08:27:18 +0100 Subject: [PATCH] Cleaning up --- scripts/install | 11 ----------- scripts/upgrade | 12 ------------ 2 files changed, 23 deletions(-) diff --git a/scripts/install b/scripts/install index cac6f1c..5eff19a 100644 --- a/scripts/install +++ b/scripts/install @@ -121,18 +121,7 @@ ynh_mysql_connect_as --user="$db_name" --password="$db_pwd" --database="$db_name #================================================= ynh_script_progression --message="Configuring Roundcube..." -#rc_conf="$final_path/config/config.inc.php" - deskey=$(ynh_string_random --length=24) - -# cp ../conf/config.inc.php "$rc_conf" - -# ynh_replace_string --match_string="__DESKEY__" --replace_string="$(ynh_string_random --length=24)" --target_file="$rc_conf" -# ynh_replace_string --match_string="__DB_USER__" --replace_string="$db_name" --target_file="$rc_conf" -# ynh_replace_string --match_string="__DB_PWD__" --replace_string="$db_pwd" --target_file="$rc_conf" -# ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --target_file="$rc_conf" -# ynh_replace_string --match_string="__LANGUAGE__" --replace_string="$language" --target_file="$rc_conf" - ynh_add_config --template="../conf/config.inc.php" --destination="$final_path/config/config.inc.php" #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 5d93a7f..f3ae0cb 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -143,18 +143,6 @@ then ynh_script_progression --message="Reconfiguring Roundcube..." rc_conf="$final_path/config/config.inc.php" - - # Verify the checksum and backup the file if it's different - # ynh_backup_if_checksum_is_different "$rc_conf" - - # cp ../conf/config.inc.php "$rc_conf" - - # ynh_replace_string --match_string="__DESKEY__" --replace_string="$(ynh_string_random --length=24)" --target_file="$rc_conf" - # ynh_replace_string --match_string="__DB_USER__" --replace_string="$db_name" --target_file="$rc_conf" - # ynh_replace_string --match_string="__DB_PWD__" --replace_string="$db_pwd" --target_file="$rc_conf" - # ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --target_file="$rc_conf" - # ynh_replace_string --match_string="__LANGUAGE__" --replace_string="$language" --target_file="$rc_conf" - deskey=$(ynh_string_random --length=24) ynh_add_config --template="../conf/config.inc.php" --destination="$final_path/config/config.inc.php"