mirror of
https://github.com/YunoHost-Apps/gotosocial_ynh.git
synced 2024-09-03 19:16:06 +02:00
update default mail config
This commit is contained in:
parent
b1d4eee731
commit
c930cbfe18
2 changed files with 10 additions and 10 deletions
|
@ -67,11 +67,11 @@ oidc_client_id=""
|
||||||
oidc_client_secret=""
|
oidc_client_secret=""
|
||||||
oidc_link_existing="false"
|
oidc_link_existing="false"
|
||||||
|
|
||||||
smtp_host="localhost"
|
smtp_host="127.0.0.1"
|
||||||
smtp_port="25"
|
smtp_port="25"
|
||||||
smtp_username=""
|
smtp_username="$app"
|
||||||
smtp_password=""
|
smtp_password="$mail_pwd"
|
||||||
smtp_from="noreply@$domain"
|
smtp_from="$app@$domain"
|
||||||
smtp_disclose_recipients="false"
|
smtp_disclose_recipients="false"
|
||||||
|
|
||||||
advanced_cookies_samesite="lax"
|
advanced_cookies_samesite="lax"
|
||||||
|
|
|
@ -160,15 +160,15 @@ then
|
||||||
ynh_app_setting_set --app="$app" --key=instance_expose_suspended_web --value="$instance_expose_suspended_web"
|
ynh_app_setting_set --app="$app" --key=instance_expose_suspended_web --value="$instance_expose_suspended_web"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Upgrade from <0.8.0~ynh2:
|
# Upgrade from <0.8.0~ynh2: (also upgrade from packaging v1)
|
||||||
if ynh_compare_current_package_version --comparison lt --version 0.8.0~ynh2 || [ -z "$smtp_host" ]
|
if ynh_compare_current_package_version --comparison lt --version 0.8.0~ynh2 || [ -z "$smtp_host" ] || [ -z "$smtp_username" ]
|
||||||
then
|
then
|
||||||
# declaration of new parameter
|
# declaration of new parameter
|
||||||
smtp_host="localhost"
|
smtp_host="127.0.0.1"
|
||||||
smtp_port="25"
|
smtp_port="25"
|
||||||
smtp_username=""
|
smtp_username="$app"
|
||||||
smtp_password=""
|
smtp_password="$mail_pwd"
|
||||||
smtp_from="noreply@$domain"
|
smtp_from="noreply-$app@$domain"
|
||||||
smtp_disclose_recipients="false"
|
smtp_disclose_recipients="false"
|
||||||
# registration of parameters
|
# registration of parameters
|
||||||
ynh_app_setting_set --app="$app" --key=smtp_host --value="$smtp_host"
|
ynh_app_setting_set --app="$app" --key=smtp_host --value="$smtp_host"
|
||||||
|
|
Loading…
Reference in a new issue