create config file if not found

This commit is contained in:
Scott E. Graves 2025-02-19 12:07:38 -06:00
parent 8ae450aaac
commit e8e435c170

View File

@ -38,6 +38,10 @@ namespace monitarr {
fmt::format("loading config|{}", cfg_file)); fmt::format("loading config|{}", cfg_file));
app_config cfg{}; app_config cfg{};
cfg.load(cfg_file); cfg.load(cfg_file);
if (not utils::file::file{cfg_file}.exists()) {
cfg.save(cfg_file);
}
return cfg; return cfg;
} }
} // namespace monitarr } // namespace monitarr