1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mattermost_ynh.git synced 2024-09-03 19:36:29 +02:00

Merge pull request #209 from YunoHost-Apps/alexAubin-patch-1

Fix backward compatibilty for db_name
This commit is contained in:
Alexandre Aubin 2021-01-31 14:18:49 +01:00 committed by GitHub
commit cfa71dd661
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -73,6 +73,11 @@ if [ -z "$version" ]; then
ynh_app_setting_set --app=$app --key=version --value=$version ynh_app_setting_set --app=$app --key=version --value=$version
fi fi
if [ -z "$db_name" ]; then
db_name="$app"
ynh_app_setting_set --app=$app --key=db_name --value=$db_name
fi
#================================================= #=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#================================================= #=================================================