From f006e9be8d1c18936441b062fbd19957ec93bcc2 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Sun, 20 Dec 2020 08:01:32 -0600 Subject: [PATCH] use CACHE_DIR constant --- frigate/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/app.py b/frigate/app.py index 7ce4449db..95d235fba 100644 --- a/frigate/app.py +++ b/frigate/app.py @@ -41,7 +41,7 @@ class FrigateApp(): tmpfs_size = self.config.save_clips.tmpfs_cache_size if tmpfs_size: logger.info(f"Creating tmpfs of size {tmpfs_size}") - rc = os.system(f"mount -t tmpfs -o size={tmpfs_size} tmpfs /tmp/cache") + rc = os.system(f"mount -t tmpfs -o size={tmpfs_size} tmpfs {CACHE_DIR}") if rc != 0: logger.error(f"Failed to create tmpfs, error code: {rc}")