From 436c6d74bb8e960513e8589f3a2e00341519b13b Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Tue, 9 Jan 2018 12:07:47 +0100 Subject: [PATCH] [fix] Add ability to symlink the archives dir --- src/yunohost/backup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yunohost/backup.py b/src/yunohost/backup.py index def7fb27b..4700c63d3 100644 --- a/src/yunohost/backup.py +++ b/src/yunohost/backup.py @@ -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)