diff --git a/etc/icinga2/Makefile.am b/etc/icinga2/Makefile.am index e652d3c34..c8f667635 100644 --- a/etc/icinga2/Makefile.am +++ b/etc/icinga2/Makefile.am @@ -12,7 +12,7 @@ CONFIG_FILES = \ install-data-local: @for file in $(CONFIG_FILES); do \ if [ ! -e $(icinga2confdir)/$$file ]; then \ - $(INSTALL_DATA) $$file $(icinga2confdir)/$$file; \ + $(INSTALL_DATA) $(srcdir)/$$file $(icinga2confdir)/$$file; \ fi; \ done diff --git a/etc/icinga2/conf.d/Makefile.am b/etc/icinga2/conf.d/Makefile.am index 15d266e74..b282aca6b 100644 --- a/etc/icinga2/conf.d/Makefile.am +++ b/etc/icinga2/conf.d/Makefile.am @@ -10,7 +10,7 @@ install-data-local: @$(MKDIR_P) $(icinga2confdir); \ for file in $(CONFIG_FILES); do \ if [ ! -e $(icinga2confdir)/$$file ]; then \ - $(INSTALL_DATA) $$file $(icinga2confdir)/$$file; \ + $(INSTALL_DATA) $(srcdir)/$$file $(icinga2confdir)/$$file; \ fi; \ done diff --git a/etc/icinga2/features-available/Makefile.am b/etc/icinga2/features-available/Makefile.am index 91cf2379d..86d324623 100644 --- a/etc/icinga2/features-available/Makefile.am +++ b/etc/icinga2/features-available/Makefile.am @@ -9,7 +9,7 @@ install-data-local: @$(MKDIR_P) $(icinga2confdir); \ for file in $(CONFIG_FILES); do \ if [ ! -e $(icinga2confdir)/$$file ]; then \ - $(INSTALL_DATA) $$file $(icinga2confdir)/$$file; \ + $(INSTALL_DATA) $(srcdir)/$$file $(icinga2confdir)/$$file; \ fi; \ done