diff --git a/README.md b/README.md index 04d18f8..83c44c7 100755 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in n8n is an extendable workflow automation tool. With a fair-code distribution model, n8n will always have visible source code, be available to self-host, and allow you to add your own custom functions, logic and apps. n8n's node-based approach makes it highly versatile, enabling you to connect anything to everything. -**Shipped version:** 0.169.0~ynh1 +**Shipped version:** 0.170.0~ynh1 diff --git a/README_fr.md b/README_fr.md index af7b636..ef478e4 100755 --- a/README_fr.md +++ b/README_fr.md @@ -13,7 +13,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour n8n is an extendable workflow automation tool. With a fair-code distribution model, n8n will always have visible source code, be available to self-host, and allow you to add your own custom functions, logic and apps. n8n's node-based approach makes it highly versatile, enabling you to connect anything to everything. -**Version incluse :** 0.169.0~ynh1 +**Version incluse :** 0.170.0~ynh1 diff --git a/conf/.env b/conf/.env index 964eacb..f5ba6b9 100644 --- a/conf/.env +++ b/conf/.env @@ -33,3 +33,10 @@ EXECUTIONS_DATA_SAVE_ON_PROGRESS=true EXECUTIONS_DATA_SAVE_MANUAL_EXECUTIONS=false EXECUTIONS_DATA_PRUNE=true EXECUTIONS_DATA_MAX_AGE=168 + +N8N_EMAIL_MODE=smtp +N8N_SMTP_HOST=localhost +N8N_SMTP_PORT=25 +N8N_SMTP_USER=__ADMIN__ +N8N_SMTP_PASS= +N8N_SMTP_SENDER=__EMAIL__ diff --git a/manifest.json b/manifest.json index 1bfcc31..1fc1908 100755 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Workflow Automation Tool. Easily automate tasks across different services", "fr": "Outil d'automatisation du flux de travail. Automatisez facilement les tâches sur différents services" }, - "version": "0.169.0~ynh1", + "version": "0.170.0~ynh1", "url": "https://n8n.io/", "upstream": { "license": "Apache-2.0", diff --git a/scripts/_common.sh b/scripts/_common.sh index 436bf94..c35d125 100755 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -6,7 +6,7 @@ nodejs_version=16 -n8n_version=0.169.0 +n8n_version=0.175.0 #================================================= # PERSONAL HELPERS diff --git a/scripts/change_url b/scripts/change_url index 0fb6e6d..bd7f4e2 100755 --- a/scripts/change_url +++ b/scripts/change_url @@ -36,6 +36,7 @@ datadir=$(ynh_app_setting_get --app=$app --key=datadir) admin=$(ynh_app_setting_get --app=$app --key=admin) password=$(ynh_app_setting_get --app=$app --key=password) timezone="$(cat /etc/timezone)" +email=$(ynh_app_setting_get --app=$app --key=email) #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP diff --git a/scripts/install b/scripts/install index dd00681..a4056be 100755 --- a/scripts/install +++ b/scripts/install @@ -29,6 +29,7 @@ is_public=$YNH_APP_ARG_IS_PUBLIC password=$YNH_APP_ARG_PASSWORD admin=$YNH_APP_ARG_ADMIN timezone="$(cat /etc/timezone)" +email=$(ynh_user_get_info --username=$admin --key=mail) app=$YNH_APP_INSTANCE_NAME @@ -52,6 +53,7 @@ ynh_app_setting_set --app=$app --key=domain --value=$domain ynh_app_setting_set --app=$app --key=path --value=$path_url ynh_app_setting_set --app=$app --key=admin --value=$admin ynh_app_setting_set --app=$app --key=password --value=$password +ynh_app_setting_set --app=$app --key=email --value=$email #================================================= # STANDARD MODIFICATIONS diff --git a/scripts/upgrade b/scripts/upgrade index 036673e..72cc1c2 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -27,6 +27,7 @@ datadir=$(ynh_app_setting_get --app=$app --key=datadir) admin=$(ynh_app_setting_get --app=$app --key=admin) password=$(ynh_app_setting_get --app=$app --key=password) timezone="$(cat /etc/timezone)" +email=$(ynh_app_setting_get --app=$app --key=email) #================================================= # CHECK VERSION @@ -76,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 #=================================================