mirror of
https://github.com/YunoHost-Apps/mattermost_ynh.git
synced 2024-09-03 19:36:29 +02:00
Set password variable to smtp_user_pwd
This commit is contained in:
parent
35a0475e8e
commit
83eaca641e
2 changed files with 2 additions and 18 deletions
|
@ -229,7 +229,7 @@
|
|||
"FeedbackOrganization": "",
|
||||
"EnableSMTPAuth": false,
|
||||
"SMTPUsername": "mattermost",
|
||||
"SMTPPassword": "__USER_PWD__",
|
||||
"SMTPPassword": "__SMTP_USER_PWD__",
|
||||
"SMTPServer": "localhost",
|
||||
"SMTPPort": "25",
|
||||
"SMTPServerTimeout": 10,
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue