Create container data directory on startup if it doesn't exist
This commit is contained in:
parent
190d8690d3
commit
d03a32b014
1 changed files with 3 additions and 0 deletions
|
|
@ -79,6 +79,9 @@ anbox::cmds::ContainerManager::ContainerManager()
|
||||||
if (!data_path_.empty())
|
if (!data_path_.empty())
|
||||||
SystemConfiguration::instance().set_data_path(data_path_);
|
SystemConfiguration::instance().set_data_path(data_path_);
|
||||||
|
|
||||||
|
if (!fs::exists(data_path_))
|
||||||
|
fs::create_directories(data_path_);
|
||||||
|
|
||||||
if (!setup_mounts())
|
if (!setup_mounts())
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue