diff --git a/conf/config.json b/conf/config.json index 7a4ef90..80df047 100644 --- a/conf/config.json +++ b/conf/config.json @@ -229,7 +229,7 @@ "FeedbackOrganization": "", "EnableSMTPAuth": false, "SMTPUsername": "mattermost", - "SMTPPassword": "__USER_PWD__", + "SMTPPassword": "__SMTP_USER_PWD__", "SMTPServer": "localhost", "SMTPPort": "25", "SMTPServerTimeout": 10, diff --git a/scripts/install b/scripts/install index 879250a..8144413 100644 --- a/scripts/install +++ b/scripts/install @@ -137,27 +137,11 @@ ynh_use_logrotate #================================================= ynh_script_progression --message="Modifying a config file..." --weight=3 -#cp ../conf/config.json $final_path/config/config.json - -user_pwd=$(ynh_string_random --length=24) +smtp_user_pwd=$(ynh_string_random --length=24) url=https://$domain$path_url ynh_add_config --template="../conf/config.json" --destination="$final_path/config/config.json" -# Main config File -# ynh_replace_string --match_string="__URL__" --replace_string="$url" --target_file="$final_path/config/config.json" -# ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="$final_path/config/config.json" -# ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --target_file="$final_path/config/config.json" -# ynh_replace_string --match_string="__DB_USER__" --replace_string="$db_user" --target_file="$final_path/config/config.json" -# ynh_replace_string --match_string="__DB_PWD__" --replace_string="$db_pwd" --target_file="$final_path/config/config.json" -# ynh_replace_string --match_string="__DATA_PATH__" --replace_string="$data_path" --target_file="$final_path/config/config.json" -# ynh_replace_string --match_string="__DOMAIN__" --replace_string="$domain" --target_file="$final_path/config/config.json" -# ynh_replace_string --match_string="__USER_PWD__" --replace_string="$user_pwd" --target_file="$final_path/config/config.json" -# ynh_replace_string --match_string="__LOGS_PATH__" --replace_string="$logs_path" --target_file="$final_path/config/config.json" -# ynh_replace_string --match_string="__LANGUAGE__" --replace_string="$language" --target_file="$final_path/config/config.json" - -ynh_store_file_checksum --file="$final_path/config/config.json" - #================================================= # SECURE FILES AND DIRECTORIES #=================================================