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

Update package

This commit is contained in:
Maniack Crudelis 2017-12-05 19:27:22 +01:00
parent e8112505b3
commit 31a120ef1c

View file

@ -58,27 +58,19 @@ then
fi fi
#================================================= #=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP # MANAGE FAILURE OF THE SCRIPT
#================================================= #=================================================
if [ $change_domain -eq 0 ] ynh_clean_setup () {
then # Nettoyage des résidus d'installation non pris en charge par le script remove.
# Backup the current version of the app
ynh_backup_before_upgrade
ynh_clean_setup () {
# Nettoyage des résidus d'installation non pris en charge par le script remove.
if test -n "$PID_TAIL" if test -n "$PID_TAIL"
then then
SUPPRESS_WARNING kill -s 15 $PID_TAIL # Arrête l'exécution de tail. SUPPRESS_WARNING kill -s 15 $PID_TAIL # Arrête l'exécution de tail.
ynh_secure_remove "$tempfile" ynh_secure_remove "$tempfile"
fi fi
}
# restore it if the upgrade fails # Exit if an error occurs during the execution of the script
ynh_restore_upgradebackup ynh_abort_if_errors
}
# Exit if an error occurs during the execution of the script
ynh_abort_if_errors
fi
#================================================= #=================================================
# STANDARD MODIFICATIONS # STANDARD MODIFICATIONS