From 52737cccdfeb2838e91542c32327537fb010856b Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 29 Oct 2020 17:47:39 +0100 Subject: [PATCH] Also propagate domain change on alias --- scripts/change_url | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/change_url b/scripts/change_url index 4df3fd5..bb7b90a 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -103,7 +103,7 @@ then mv $nginx_conf_path /etc/nginx/conf.d/$new_domain.d/$app.conf # Store file checksum for the new config file location ynh_store_file_checksum --file="/etc/nginx/conf.d/$new_domain.d/$app.conf" - yunohost user update "${app}_notifs" --mail ${app}_notifs@{$new_domain} + yunohost user update "${app}_notifs" --mail ${app}_notifs@{$new_domain} --remove-mailalias ${app}@${old_domain} --add-mailalias ${app}@${new_domain} fi #=================================================