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

add ynh_backup_before_upgrade

This commit is contained in:
Jean-Baptiste Holcroft 2017-10-23 15:52:55 +02:00
parent 33415b8fe7
commit 519b65a369

View file

@ -47,6 +47,15 @@ fi
# Normalize the URL path syntax
path_url=$(ynh_normalize_url_path $path_url)
# Backup the current version of the app
ynh_backup_before_upgrade
ynh_clean_setup () {
# restore it if the upgrade fails
ynh_restore_upgradebackup
}
# Exit if an error occurs during the execution of the script
ynh_abort_if_errors
#=================================================
# STANDARD UPGRADE STEPS
#=================================================