Update upgrade

This commit is contained in:
yalh76 2020-01-05 23:27:00 +01:00
parent faeed54d0f
commit 9c851b39cb

View File

@ -86,6 +86,10 @@ ynh_print_info --message="Backing up the app before upgrading (may take a while)
# Backup the current version of the app
ynh_backup_before_upgrade
#Workaround to be remove in next version
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd"
ynh_clean_setup () {
# restore it if the upgrade fails
ynh_restore_upgradebackup