Create backup archive dir during postinstall

This commit is contained in:
Alexandre Aubin 2020-06-19 15:08:22 +02:00
parent ad10fc5f6c
commit 9933290836

View file

@ -359,6 +359,12 @@ def tools_postinstall(operation_logger, domain, password, ignore_dyndns=False,
except Exception as e:
logger.warning(str(e))
# Create the archive directory (makes it easier for people to upload backup
# archives, otherwise it's only created after running `yunohost backup
# create` once.
from yunohost.backup import _create_archive_dir
_create_archive_dir()
# Init migrations (skip them, no need to run them on a fresh system)
_skip_all_migrations()