mirror of https://git.48k.eu/ogclient
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.master
parent
3aa76e4039
commit
c3ce5342c9
|
@ -79,4 +79,4 @@ def init_cache():
|
||||||
mountpoint = mount_cache()
|
mountpoint = mount_cache()
|
||||||
if mountpoint:
|
if mountpoint:
|
||||||
logging.info(f'Creating cache directory at {mountpoint}')
|
logging.info(f'Creating cache directory at {mountpoint}')
|
||||||
os.makedirs('/opt/opengnsys/cache/opt/opengnsys/images')
|
os.makedirs(f'{mountpoint}/opt/opengnsys/images')
|
||||||
|
|
Loading…
Reference in New Issue