mirror of
https://github.com/YunoHost-Apps/paheko_ynh.git
synced 2024-09-03 19:56:22 +02:00
debug values
This commit is contained in:
parent
957cb435d7
commit
522195d277
3 changed files with 4 additions and 1 deletions
|
@ -583,7 +583,7 @@ const SMTP_SECURITY = '__SMTP_SECURITY__';
|
||||||
* Défaut : null
|
* Défaut : null
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//const MAIL_RETURN_PATH = '__MAIL_RETURN_PATH__';
|
const MAIL_RETURN_PATH = '__MAIL_RETURN_PATH__';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -17,6 +17,7 @@ ynh_app_setting_set --app=$app --key=smtp_port --value=25
|
||||||
ynh_app_setting_set --app=$app --key=smtp_user --value=$app
|
ynh_app_setting_set --app=$app --key=smtp_user --value=$app
|
||||||
ynh_app_setting_set --app=$app --key=smtp_password --value=$mail_pwd
|
ynh_app_setting_set --app=$app --key=smtp_password --value=$mail_pwd
|
||||||
ynh_app_setting_set --app=$app --key=smtp_security --value=STARTTLS
|
ynh_app_setting_set --app=$app --key=smtp_security --value=STARTTLS
|
||||||
|
ynh_app_setting_set --app=$app --key=mail_return_path --value=$app@$domain
|
||||||
ynh_app_setting_set --app=$app --key=mail_sender --value=$app@$domain
|
ynh_app_setting_set --app=$app --key=mail_sender --value=$app@$domain
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -37,6 +37,7 @@ if [ -z "${smtp_host:-}" ]; then
|
||||||
smtp_user=$(ynh_read_var_in_file --file=$user_conf --key=SMTP_USER)
|
smtp_user=$(ynh_read_var_in_file --file=$user_conf --key=SMTP_USER)
|
||||||
smtp_password=$(ynh_read_var_in_file --file=$user_conf --key=SMTP_PASSWORD)
|
smtp_password=$(ynh_read_var_in_file --file=$user_conf --key=SMTP_PASSWORD)
|
||||||
smtp_security=$(ynh_read_var_in_file --file=$user_conf --key=SMTP_SECURITY)
|
smtp_security=$(ynh_read_var_in_file --file=$user_conf --key=SMTP_SECURITY)
|
||||||
|
mail_return_path=$(ynh_read_var_in_file --file=$user_conf --key=MAIL_RETURN_PATH)
|
||||||
mail_sender=$(ynh_read_var_in_file --file=$user_conf --key=MAIL_SENDER)
|
mail_sender=$(ynh_read_var_in_file --file=$user_conf --key=MAIL_SENDER)
|
||||||
ynh_replace_string --match_string="const SMTP_" --replace_string="//const SMTP_" --target_file=$user_conf
|
ynh_replace_string --match_string="const SMTP_" --replace_string="//const SMTP_" --target_file=$user_conf
|
||||||
ynh_replace_string --match_string="const MAIL_" --replace_string="//const MAIL_" --target_file=$user_conf
|
ynh_replace_string --match_string="const MAIL_" --replace_string="//const MAIL_" --target_file=$user_conf
|
||||||
|
@ -54,6 +55,7 @@ if [ -z "${smtp_host:-}" ]; then
|
||||||
ynh_app_setting_set --app=$app --key=smtp_user --value=$smtp_user
|
ynh_app_setting_set --app=$app --key=smtp_user --value=$smtp_user
|
||||||
ynh_app_setting_set --app=$app --key=smtp_password --value=$smtp_password
|
ynh_app_setting_set --app=$app --key=smtp_password --value=$smtp_password
|
||||||
ynh_app_setting_set --app=$app --key=smtp_security --value=$smtp_security
|
ynh_app_setting_set --app=$app --key=smtp_security --value=$smtp_security
|
||||||
|
ynh_app_setting_set --app=$app --key=mail_return_path --value=$mail_return_path
|
||||||
ynh_app_setting_set --app=$app --key=mail_sender --value=$mail_sender
|
ynh_app_setting_set --app=$app --key=mail_sender --value=$mail_sender
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue