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 diff --git a/conf/.env b/conf/.env index 4dc66d7..f2cde49 100644 --- a/conf/.env +++ b/conf/.env @@ -23,5 +23,12 @@ 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 +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 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 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/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) 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..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) @@ -113,7 +114,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