summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-03-26 10:56:38 +0100
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-03-26 13:32:58 +0100
commitc3ce5342c96b8dfbe3cb472f8964963eb07a4959 (patch)
tree635cfe8fe60a553c3ebf6407aa1b65c3becc64af /src
parent3aa76e403908c37e4f4f9989e9318bed96001e28 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/utils/cache.py2
1 files changed, 1 insertions, 1 deletions
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')