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 #21 from YunoHost-Apps/testing

Update .env
This commit is contained in:
Éric Gaspar 2022-05-02 23:27:26 +02:00 committed by GitHub
commit 39e07192ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 4 deletions

View file

@ -20,11 +20,12 @@ GENERIC_TIMEZONE=__TIMEZONE__
N8N_PROTOCOL=http
N8N_LISTEN_ADDRESS=127.0.0.1
DB_TYPE=mysqldb
DB_MYSQLDB_DATABASE=__DB_NAME__
DB_MYSQLDB_HOST_FILE=localhost
DB_MYSQLDB_PORT_FILE=3306
DB_MYSQLDB_USER_FILE=__DB_USER__
DB_MYSQLDB_PASSWORD_FILE=__DB_PWD__
DB_MYSQLDB_HOST="localhost"
DB_MYSQLDB_PORT=3306
DB_MYSQLDB_USER=__DB_USER__
DB_MYSQLDB_PASSWORD=__DB_PWD__
EXECUTIONS_DATA_SAVE_ON_ERROR=all
EXECUTIONS_DATA_SAVE_ON_SUCCESS=none

View file

@ -65,6 +65,17 @@ ynh_script_progression --message="Making sure dedicated system user exists..." -
# Create a dedicated user (if not existing)
ynh_system_user_create --username=$app --home_dir="$final_path"
#=================================================
# ENSURE DOWNWARD COMPATIBILITY
#=================================================
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
if ynh_compare_current_package_version --comparison le --version 0.169.0~ynh1
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
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================