summary refs log tree commit diff
path: root/synapse/config
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-10-12 17:31:24 +0100
committerErik Johnston <erik@matrix.org>2017-10-12 17:31:24 +0100
commite283b555b1f20de4fd393fd947e82eb3c635b7e9 (patch)
tree7b5aafae42dd35d1dacc96e965d0ad813862b08a /synapse/config
parentTypo (diff)
downloadsynapse-e283b555b1f20de4fd393fd947e82eb3c635b7e9.tar.xz
Copy everything to backup
Diffstat (limited to 'synapse/config')
-rw-r--r--synapse/config/repository.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/config/repository.py b/synapse/config/repository.py
index e3c83d56fa..6baa474931 100644
--- a/synapse/config/repository.py
+++ b/synapse/config/repository.py
@@ -75,7 +75,9 @@ class ContentRepositoryConfig(Config):
 
         self.backup_media_store_path = config.get("backup_media_store_path")
         if self.backup_media_store_path:
-            self.ensure_directory(self.backup_media_store_path)
+            self.backup_media_store_path = self.ensure_directory(
+                self.backup_media_store_path
+            )
 
         self.synchronous_backup_media_store = config.get(
             "synchronous_backup_media_store", False