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

add in config panel avalaibity to disable emails bug boolean

This commit is contained in:
rodinux 2024-08-17 18:08:41 +02:00
parent 1cb2f561f7
commit 37c8a7118b
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@ source /usr/share/yunohost/helpers
secret_key=$(ynh_string_random --length=50)
ynh_app_setting_set --app=$app --key=secret_key --value=$secret_key
ynh_app_setting_set --app=$app --key=smtp_disable_email --value=true
ynh_app_setting_set --app=$app --key=smtp_disable_email --value=no
ynh_app_setting_set --app=$app --key=smtp_host --value=$domain
ynh_app_setting_set --app=$app --key=smtp_port --value=25
ynh_app_setting_set --app=$app --key=smtp_user --value=$app

View file

@ -43,7 +43,7 @@ if [ -z "${smtp_host:-}" ]; then
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
else
disable_email=true
disable_email=no
smtp_host=$domain
smtp_port=25
smtp_user=$app