From 3cf59ad5e32992b0cac9be7a132394d41ce2b1cd Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 1 Oct 2013 08:47:56 +0200 Subject: [PATCH] Only install conf.d config files if the conf.d directory doesn't already exist. --- etc/icinga2/conf.d/Makefile.am | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/etc/icinga2/conf.d/Makefile.am b/etc/icinga2/conf.d/Makefile.am index 0b3f06380..407a0a907 100644 --- a/etc/icinga2/conf.d/Makefile.am +++ b/etc/icinga2/conf.d/Makefile.am @@ -7,11 +7,11 @@ CONFIG_FILES = \ macros.conf install-data-local: - @$(MKDIR_P) $(icinga2confdir); \ - for file in $(CONFIG_FILES); do \ - if [ ! -e $(icinga2confdir)/$$file ]; then \ - $(INSTALL_DATA) -o @icinga_user@ -g @icinga_group@ -m 0640 $(srcdir)/$$file $(icinga2confdir)/$$file; \ - fi; \ - done + if [ ! -e $(icinga2confdir); ]; then \ + @$(MKDIR_P) $(icinga2confdir); \ + for file in $(CONFIG_FILES); do \ + $(INSTALL_DATA) -o @icinga_user@ -g @icinga_group@ -m 0640 $(srcdir)/$$file $(icinga2confdir)/$$file; \ + done; + fi EXTRA_DIST = $(CONFIG_FILES)