Fixed: Make sure required rrd directory exists.

--HG--
branch : develop
This commit is contained in:
Nimetu 2019-07-17 15:04:09 +03:00
parent e3b0cdeadf
commit b822f1388e

View file

@ -221,6 +221,13 @@ namespace ADMIN
fclose(fp);
}
string rrddirname = CPath::standardizePath (IService::getInstance()->ConfigFile.getVar("RRDVarPath").asString());
if (!NLMISC::CFile::isExists(rrddirname))
{
CFile::createDirectory(rrddirname);
CFile::setRWAccess(rrddirname);
}
return true;
}