create config file if not found
This commit is contained in:
parent
8ae450aaac
commit
e8e435c170
@ -38,6 +38,10 @@ namespace monitarr {
|
||||
fmt::format("loading config|{}", cfg_file));
|
||||
app_config cfg{};
|
||||
cfg.load(cfg_file);
|
||||
if (not utils::file::file{cfg_file}.exists()) {
|
||||
cfg.save(cfg_file);
|
||||
}
|
||||
|
||||
return cfg;
|
||||
}
|
||||
} // namespace monitarr
|
||||
|
Loading…
x
Reference in New Issue
Block a user