1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/paheko_ynh.git synced 2024-09-03 19:56:22 +02:00

remove mail_return_path in config panel

This commit is contained in:
rodinux 2024-08-18 13:43:54 +02:00
parent 717a065ca1
commit 72bbaa33b4
3 changed files with 1 additions and 4 deletions

View file

@ -583,7 +583,7 @@ const SMTP_SECURITY = '__SMTP_SECURITY__';
* Défaut : null
*/
const MAIL_RETURN_PATH = '__MAIL_RETURN_PATH__';
//const MAIL_RETURN_PATH = '__MAIL_RETURN_PATH__';
/**

View file

@ -17,7 +17,6 @@ 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_password --value=$mail_pwd
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
#=================================================

View file

@ -37,7 +37,6 @@ if [ -z "${smtp_host:-}" ]; then
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_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)
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
@ -55,7 +54,6 @@ 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_password --value=$smtp_password
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
fi