From 33afe9e4f44b58e9ca59c07b011c845e395f30a9 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 2 May 2022 23:31:08 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 6ccfb66..72cc1c2 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -77,6 +77,12 @@ then ynh_die --message="Upgrade from version 0.169.0~ynh1 is not possible is not possible yet because data migration is not supported. Please let us know you encounter this message in this issue: https://github.com/YunoHost-Apps/n8n_ynh/issues/18" fi +# If email doesn't exist, create it +if [ -z "$email" ]; then + email=$(ynh_user_get_info --username=$admin --key=mail) + ynh_app_setting_set --app=$app --key=email --value=$email +fi + #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #=================================================