1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/n8n_ynh.git synced 2024-09-03 19:55:52 +02:00

Merge pull request #24 from YunoHost-Apps/testing

Testing
This commit is contained in:
Éric Gaspar 2022-05-11 20:38:34 +02:00 committed by GitHub
commit af2df1146f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 21 additions and 4 deletions

View file

@ -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.175.0~ynh1

View file

@ -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.175.0~ynh1

View file

@ -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__

View file

@ -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.175.0~ynh1",
"url": "https://n8n.io/",
"upstream": {
"license": "Apache-2.0",

View file

@ -6,7 +6,7 @@
nodejs_version=16
n8n_version=0.169.0
n8n_version=0.175.0
#=================================================
# PERSONAL HELPERS

View file

@ -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

View file

@ -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

View file

@ -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
#=================================================