From c3ce5342c96b8dfbe3cb472f8964963eb07a4959 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Tue, 26 Mar 2024 10:56:38 +0100 Subject: utils: make init_cache() use the cache mountpoint Make init_cache() use the actual cache mountpoint returned by the function mount_cache() for the creation of the cache directories instead of a hardcoded path. --- src/utils/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/utils/cache.py b/src/utils/cache.py index a97cc41..afdc75a 100644 --- a/src/utils/cache.py +++ b/src/utils/cache.py @@ -79,4 +79,4 @@ def init_cache(): mountpoint = mount_cache() if mountpoint: logging.info(f'Creating cache directory at {mountpoint}') - os.makedirs('/opt/opengnsys/cache/opt/opengnsys/images') + os.makedirs(f'{mountpoint}/opt/opengnsys/images') -- cgit v1.2.3-18-g5258