소스 검색

use CACHE_DIR constant

Blake Blackshear 4 년 전
부모
커밋
363594a9a2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      frigate/app.py

+ 1 - 1
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}")