mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[fix] Need to create archives_path even for custom output directory
This commit is contained in:
parent
34ca628624
commit
8bf8534a9a
1 changed files with 4 additions and 2 deletions
|
@ -120,8 +120,10 @@ def backup_create(name=None, description=None, output_directory=None,
|
|||
env_var['CAN_BIND'] = 0
|
||||
else:
|
||||
output_directory = archives_path
|
||||
if not os.path.isdir(archives_path):
|
||||
os.mkdir(archives_path, 0750)
|
||||
|
||||
# Create archives directory if it does not exists
|
||||
if not os.path.isdir(archives_path):
|
||||
os.mkdir(archives_path, 0750)
|
||||
|
||||
def _clean_tmp_dir(retcode=0):
|
||||
ret = hook_callback('post_backup_create', args=[tmp_dir, retcode])
|
||||
|
|
Loading…
Add table
Reference in a new issue