Fixed: Make sure required rrd directory exists.
--HG-- branch : develop
This commit is contained in:
parent
e3b0cdeadf
commit
b822f1388e
1 changed files with 7 additions and 0 deletions
|
@ -221,6 +221,13 @@ namespace ADMIN
|
||||||
fclose(fp);
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue