From 2de534f696fbcb4686bf4a61166b7ff374d7718a Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 26 Mar 2022 20:25:12 +0100 Subject: [PATCH 1/7] Update .env --- conf/.env | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/conf/.env b/conf/.env index 4dc66d7..56c7271 100644 --- a/conf/.env +++ b/conf/.env @@ -25,3 +25,10 @@ DB_MYSQLDB_HOST_FILE=localhost DB_MYSQLDB_PORT_FILE=3306 DB_MYSQLDB_USER_FILE=__DB_NAME__ DB_MYSQLDB_PASSWORD_FILE=__DB_PWD__ + +EXECUTIONS_DATA_SAVE_ON_ERROR=all +EXECUTIONS_DATA_SAVE_ON_SUCCESS=none +EXECUTIONS_DATA_SAVE_ON_PROGRESS=true +EXECUTIONS_DATA_SAVE_MANUAL_EXECUTIONS=false +EXECUTIONS_DATA_PRUNE=true +EXECUTIONS_DATA_MAX_AGE=168 From 8f399678f92df7a377f526793c1e1079a1e1799a Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 27 Mar 2022 10:45:42 +0200 Subject: [PATCH 2/7] Update .env --- conf/.env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/.env b/conf/.env index 56c7271..f2cde49 100644 --- a/conf/.env +++ b/conf/.env @@ -23,7 +23,7 @@ N8N_LISTEN_ADDRESS=127.0.0.1 DB_MYSQLDB_DATABASE=__DB_NAME__ DB_MYSQLDB_HOST_FILE=localhost DB_MYSQLDB_PORT_FILE=3306 -DB_MYSQLDB_USER_FILE=__DB_NAME__ +DB_MYSQLDB_USER_FILE=__DB_USER__ DB_MYSQLDB_PASSWORD_FILE=__DB_PWD__ EXECUTIONS_DATA_SAVE_ON_ERROR=all From 0c8519576cc0db59262d674366fd4b92c9587892 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 27 Mar 2022 10:46:59 +0200 Subject: [PATCH 3/7] 0.169.0 --- manifest.json | 2 +- scripts/_common.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index 74ef312..1bfcc31 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.168.2~ynh1", + "version": "0.169.0~ynh1", "url": "https://n8n.io/", "upstream": { "license": "Apache-2.0", diff --git a/scripts/_common.sh b/scripts/_common.sh index c411b98..436bf94 100755 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -6,7 +6,7 @@ nodejs_version=16 -n8n_version=0.168.2 +n8n_version=0.169.0 #================================================= # PERSONAL HELPERS From 17510b5c1c251f7de6b02c65330910af239e314e Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Sun, 27 Mar 2022 08:47:05 +0000 Subject: [PATCH 4/7] 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 00fe04f..04d18f8 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.168.2~ynh1 +**Shipped version:** 0.169.0~ynh1 diff --git a/README_fr.md b/README_fr.md index dad34b4..af7b636 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.168.2~ynh1 +**Version incluse :** 0.169.0~ynh1 From 722979520f011950bd09e9c99dfe2011b6049333 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 27 Mar 2022 10:52:28 +0200 Subject: [PATCH 5/7] Fix --- scripts/backup | 2 +- scripts/install | 2 +- scripts/upgrade | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/backup b/scripts/backup index b1aa5f0..20f1aed 100755 --- a/scripts/backup +++ b/scripts/backup @@ -67,4 +67,4 @@ ynh_mysql_dump_db --database="$db_name" > db.sql # END OF SCRIPT #================================================= -ynh_print_info --message="Backup script completed for n8n. (YunoHost will then actually copy those files to the archive)." +ynh_print_info --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)." diff --git a/scripts/install b/scripts/install index cc7b3cf..dd00681 100755 --- a/scripts/install +++ b/scripts/install @@ -149,7 +149,7 @@ chown $app:$app "$final_path/.env" #================================================= ynh_script_progression --message="Configuring a systemd service..." --weight=4 -ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service" +env_path="$PATH" # Create a dedicated systemd config ynh_add_systemd_config diff --git a/scripts/upgrade b/scripts/upgrade index 8f1af16..8fe6ff0 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -113,7 +113,7 @@ chown $app:$app "$final_path/.env" #================================================= ynh_script_progression --message="Upgrading systemd configuration..." --weight=2 -ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service" +env_path="$PATH" # Create a dedicated systemd config ynh_add_systemd_config From ec41f1f0224dce4decf3d02ecb98a53ba7488655 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 28 Mar 2022 07:54:17 +0200 Subject: [PATCH 6/7] Update change_url --- scripts/change_url | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/change_url b/scripts/change_url index 2c38fe5..0fb6e6d 100755 --- a/scripts/change_url +++ b/scripts/change_url @@ -30,6 +30,7 @@ ynh_script_progression --message="Loading installation settings..." --weight=1 final_path=$(ynh_app_setting_get --app=$app --key=final_path) port=$(ynh_app_setting_get --app=$app --key=port) db_name=$(ynh_app_setting_get --app=$app --key=db_name) +db_user=$db_name db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd) datadir=$(ynh_app_setting_get --app=$app --key=datadir) admin=$(ynh_app_setting_get --app=$app --key=admin) From 6e65fbf0fa81e7a43ef96712a56eda8f157e23fd Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 28 Mar 2022 07:54:48 +0200 Subject: [PATCH 7/7] Update upgrade --- scripts/upgrade | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/upgrade b/scripts/upgrade index 8fe6ff0..fe3a8bf 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -21,6 +21,7 @@ path_url=$(ynh_app_setting_get --app=$app --key=path) final_path=$(ynh_app_setting_get --app=$app --key=final_path) port=$(ynh_app_setting_get --app=$app --key=port) db_name=$(ynh_app_setting_get --app=$app --key=db_name) +db_user=$db_name db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd) datadir=$(ynh_app_setting_get --app=$app --key=datadir) admin=$(ynh_app_setting_get --app=$app --key=admin)