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,6 +120,8 @@ def backup_create(name=None, description=None, output_directory=None,
|
||||||
env_var['CAN_BIND'] = 0
|
env_var['CAN_BIND'] = 0
|
||||||
else:
|
else:
|
||||||
output_directory = archives_path
|
output_directory = archives_path
|
||||||
|
|
||||||
|
# Create archives directory if it does not exists
|
||||||
if not os.path.isdir(archives_path):
|
if not os.path.isdir(archives_path):
|
||||||
os.mkdir(archives_path, 0750)
|
os.mkdir(archives_path, 0750)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue