centralize reading/writing file

This commit is contained in:
loki
2021-06-09 12:04:51 +02:00
parent 9d52174d6b
commit cf77b301bc
4 changed files with 3 additions and 33 deletions

View File

@@ -316,7 +316,7 @@ void saveConfig(resp_https_t response, req_https_t request) {
configStream << kv.first << " = " << value << std::endl;
}
http::write_file(SUNSHINE_ASSETS_DIR "/sunshine.conf", configStream.str());
write_file(SUNSHINE_ASSETS_DIR "/sunshine.conf", configStream.str());
}
catch(std::exception &e) {
BOOST_LOG(warning) << e.what();