mirror of https://github.com/Icinga/icinga2.git
Only install conf.d config files if the conf.d directory doesn't already exist.
This commit is contained in:
parent
e338be1e8f
commit
3cf59ad5e3
|
@ -7,11 +7,11 @@ CONFIG_FILES = \
|
||||||
macros.conf
|
macros.conf
|
||||||
|
|
||||||
install-data-local:
|
install-data-local:
|
||||||
|
if [ ! -e $(icinga2confdir); ]; then \
|
||||||
@$(MKDIR_P) $(icinga2confdir); \
|
@$(MKDIR_P) $(icinga2confdir); \
|
||||||
for file in $(CONFIG_FILES); do \
|
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; \
|
$(INSTALL_DATA) -o @icinga_user@ -g @icinga_group@ -m 0640 $(srcdir)/$$file $(icinga2confdir)/$$file; \
|
||||||
fi; \
|
done;
|
||||||
done
|
fi
|
||||||
|
|
||||||
EXTRA_DIST = $(CONFIG_FILES)
|
EXTRA_DIST = $(CONFIG_FILES)
|
||||||
|
|
Loading…
Reference in New Issue