mirror of
https://github.com/YunoHost-Apps/ttrss_ynh.git
synced 2024-10-01 13:34:46 +02:00
Delete temporary folder in case of upgrade failure
This commit is contained in:
parent
3c2240a9cd
commit
122ad91d7c
1 changed files with 4 additions and 0 deletions
|
@ -40,6 +40,10 @@ fi
|
|||
|
||||
ynh_backup_before_upgrade # Backup the current version of the app
|
||||
ynh_clean_setup () {
|
||||
# Delete any created temporary folder
|
||||
if [ -v tmpdir ] && [ -d $tmpdir ]; then
|
||||
ynh_secure_remove $tmpdir
|
||||
fi
|
||||
ynh_restore_upgradebackup # restore it if the upgrade fails
|
||||
}
|
||||
ynh_abort_if_errors # Active trap pour arrêter le script si une erreur est détectée.
|
||||
|
|
Loading…
Add table
Reference in a new issue