mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Clean tmp directory when restoration is cancelled
This commit is contained in:
parent
4e48aeb388
commit
4cc5775721
1 changed files with 1 additions and 0 deletions
|
@ -368,6 +368,7 @@ def backup_restore(name, hooks=[], apps=[], ignore_apps=False, ignore_hooks=Fals
|
||||||
if i == 'y' or i == 'Y':
|
if i == 'y' or i == 'Y':
|
||||||
force = True
|
force = True
|
||||||
if not force:
|
if not force:
|
||||||
|
_clean_tmp_dir()
|
||||||
raise MoulinetteError(errno.EEXIST, m18n.n('restore_failed'))
|
raise MoulinetteError(errno.EEXIST, m18n.n('restore_failed'))
|
||||||
else:
|
else:
|
||||||
from yunohost.tools import tools_postinstall
|
from yunohost.tools import tools_postinstall
|
||||||
|
|
Loading…
Add table
Reference in a new issue