From: Gunnar Beutner Date: Tue, 11 Aug 2015 10:59:26 +0000 (+0200) Subject: Make sure we're always creating the conf.d and zones.d directories X-Git-Tag: v2.4.0~430 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2e43c57d6b53605eb472b11a90bfd29d4b5ad81c;p=icinga2 Make sure we're always creating the conf.d and zones.d directories fixes #9879 --- diff --git a/lib/remote/configmoduleutility.cpp b/lib/remote/configmoduleutility.cpp index 7e87507cc..2f0eb0e25 100644 --- a/lib/remote/configmoduleutility.cpp +++ b/lib/remote/configmoduleutility.cpp @@ -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;