From 1c24575fd0f18cb590244006d24ec3353dcb0e85 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 31 Mar 2022 19:34:57 +0200 Subject: [PATCH 1/9] add email var --- conf/.env | 7 +++++++ scripts/install | 1 + 2 files changed, 8 insertions(+) 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/scripts/install b/scripts/install index dd00681..e4ff429 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 From ebbd7c0c022afa45170f56151401678f237690b4 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 1 Apr 2022 10:14:21 +0200 Subject: [PATCH 2/9] Fix --- scripts/change_url | 1 + scripts/install | 1 + 2 files changed, 2 insertions(+) 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 e4ff429..a4056be 100755 --- a/scripts/install +++ b/scripts/install @@ -53,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 From 881123f0d24fcffa589db517f646849e3a800f65 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 1 Apr 2022 10:15:41 +0200 Subject: [PATCH 3/9] 0.170 --- manifest.json | 2 +- scripts/_common.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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..f6a7d02 100755 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -6,7 +6,7 @@ nodejs_version=16 -n8n_version=0.169.0 +n8n_version=0.170.0 #================================================= # PERSONAL HELPERS From 46340c84af0bfb65ebc54a005ef07bf5c2ae11ba Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Fri, 1 Apr 2022 08:15:47 +0000 Subject: [PATCH 4/9] Auto-update README --- README.md | 2 +- README_fr.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 From 180223205c78616055bbb4a505ee716842b96a78 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 3 Apr 2022 23:00:16 +0200 Subject: [PATCH 5/9] Update upgrade --- scripts/upgrade | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/upgrade b/scripts/upgrade index 036673e..6ccfb66 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 From 33afe9e4f44b58e9ca59c07b011c845e395f30a9 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 2 May 2022 23:31:08 +0200 Subject: [PATCH 6/9] 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 #================================================= From c976c497c3a28056704613107ee5e035c1939c66 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 2 May 2022 23:32:21 +0200 Subject: [PATCH 7/9] Update _common.sh --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index f6a7d02..c35d125 100755 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -6,7 +6,7 @@ nodejs_version=16 -n8n_version=0.170.0 +n8n_version=0.175.0 #================================================= # PERSONAL HELPERS From 6dbf07477de90c833d21d2c90fdac659419e0759 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 3 May 2022 07:00:29 +0200 Subject: [PATCH 8/9] Update manifest.json --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 1fc1908..783d7c0 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.170.0~ynh1", + "version": "0.175.0~ynh1", "url": "https://n8n.io/", "upstream": { "license": "Apache-2.0", From f37eb48589f88777af6cce7b5eabddccef6e7572 Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Tue, 3 May 2022 05:00:33 +0000 Subject: [PATCH 9/9] Auto-update README --- README.md | 2 +- README_fr.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 83c44c7..c137fb2 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.170.0~ynh1 +**Shipped version:** 0.175.0~ynh1 diff --git a/README_fr.md b/README_fr.md index ef478e4..6186fdd 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.170.0~ynh1 +**Version incluse :** 0.175.0~ynh1