file must exist
This commit is contained in:
parent
d72158d78f
commit
44cb61da96
1 changed files with 2 additions and 1 deletions
|
@ -143,6 +143,7 @@ def install(stop=True):
|
||||||
shutil.rmtree(module_old)
|
shutil.rmtree(module_old)
|
||||||
shutil.rmtree(new)
|
shutil.rmtree(new)
|
||||||
else:
|
else:
|
||||||
|
if os.path.exists(module_tar):
|
||||||
os.unlink(module_tar)
|
os.unlink(module_tar)
|
||||||
return False
|
return False
|
||||||
shutil.copy(os.path.join(settings.updates_path, 'release.json'), os.path.join(settings.config_path, 'release.json'))
|
shutil.copy(os.path.join(settings.updates_path, 'release.json'), os.path.join(settings.config_path, 'release.json'))
|
||||||
|
|
Loading…
Reference in a new issue