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

Update upgrade

This commit is contained in:
Éric Gaspar 2023-03-16 14:47:56 +01:00
parent b692986c71
commit 9fb7e61c6f

View file

@ -23,24 +23,6 @@ email=$(ynh_user_get_info --username=$admin --key=mail)
upgrade_type=$(ynh_check_app_version_changed)
#=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#=================================================
# ynh_script_progression --message="Backing up the app before upgrading (may take a while)..." --weight=1
# # Backup the current version of the app
# ynh_backup_before_upgrade
# ynh_clean_setup () {
# # Remove the PostgreSQL db in case of error during the migration.
# if [ -n "$remove_psql_in_case_of_error" ]; then
# ynh_psql_remove_db --db_user=$db_user --db_name=$db_name
# fi
# # Restore it if the upgrade fails
# ynh_restore_upgradebackup
# }
# # Exit if an error occurs during the execution of the script
# ynh_abort_if_errors
#=================================================
# ENSURE DOWNWARD COMPATIBILITY
#=================================================