]> granicus.if.org Git - icinga2/commitdiff
Only install conf.d config files if the conf.d directory doesn't already exist.
authorGunnar Beutner <gunnar.beutner@netways.de>
Tue, 1 Oct 2013 06:47:56 +0000 (08:47 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Tue, 1 Oct 2013 06:47:56 +0000 (08:47 +0200)
etc/icinga2/conf.d/Makefile.am

index 0b3f063809c77b1abd7af80b1eaed0ae0a2463c2..407a0a90784f539e55be9237e9525a774f143018 100644 (file)
@@ -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)