mirror of https://github.com/Icinga/icinga2.git
config: Fix $(DESTDIR) support.
This commit is contained in:
parent
09c26fec34
commit
98032b2a71
|
@ -4,7 +4,7 @@ SUBDIRS = \
|
|||
conf.d \
|
||||
features-available
|
||||
|
||||
icinga2confdir = $(sysconfdir)/icinga2
|
||||
icinga2confdir = $(DESTDIR)${sysconfdir}/icinga2
|
||||
|
||||
CONFIG_FILES = \
|
||||
icinga2.conf
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
## Process this file with automake to produce Makefile.in
|
||||
|
||||
icinga2confdir = $(sysconfdir)/icinga2/conf.d
|
||||
icinga2confdir = $(DESTDIR)${sysconfdir}/icinga2/conf.d
|
||||
|
||||
CONFIG_FILES = \
|
||||
localhost.conf \
|
||||
macros.conf
|
||||
|
||||
install-data-local:
|
||||
if [ ! -e $(icinga2confdir); ]; then \
|
||||
@$(MKDIR_P) $(icinga2confdir); \
|
||||
@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; \
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
## Process this file with automake to produce Makefile.in
|
||||
|
||||
icinga2confdir = $(sysconfdir)/icinga2/features-available
|
||||
icinga2confdir = $(DESTDIR)${sysconfdir}/icinga2/features-available
|
||||
|
||||
CONFIG_FILES = \
|
||||
checker.conf \
|
||||
|
|
Loading…
Reference in New Issue