]> granicus.if.org Git - icinga2/commitdiff
Make sure we're always creating the conf.d and zones.d directories
authorGunnar Beutner <gunnar@beutner.name>
Tue, 11 Aug 2015 10:59:26 +0000 (12:59 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Tue, 11 Aug 2015 10:59:26 +0000 (12:59 +0200)
fixes #9879

lib/remote/configmoduleutility.cpp

index 7e87507cc24f9f08f1719913061b3afd7ca5d9ce..2f0eb0e25f2165932da6219e29fcdf61666bdf58 100644 (file)
@@ -82,6 +82,8 @@ String ConfigModuleUtility::CreateStage(const String& moduleName, const Dictiona
        path += "/" + stageName;
 
        Utility::MkDirP(path, 0700);
+       Utility::MkDirP(path + "/conf.d", 0700);
+       Utility::MkDirP(path + "/zones.d", 0700);
        WriteStageConfig(moduleName, stageName);
 
        bool foundDotDot = false;