[fix] Add ability to symlink the archives dir

This commit is contained in:
ljf (zamentur) 2018-01-09 12:07:47 +01:00 committed by GitHub
parent afc520fb06
commit 436c6d74bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2300,7 +2300,7 @@ def backup_delete(name):
def _create_archive_dir():
""" Create the YunoHost archives directory if doesn't exist """
if not os.path.isdir(ARCHIVES_PATH):
if not os.path.isdir(ARCHIVES_PATH) and not os.path.islink(ARCHIVES_PATH):
os.mkdir(ARCHIVES_PATH, 0750)