Commit 8ff9b784 authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[master] Replace keactrl.conf during installation.

We have updated keactrl.conf in Kea 1.3.0 release and thus its new
version must be always installed. The old version is backed up.

This change was okayed on jabber.
parent 84fc6638
......@@ -52,12 +52,24 @@ kea-ctrl-agent.conf: kea-ctrl-agent.conf.pre
# Since Kea 1.3.0 release we have 4 different Kea configuration files
# instead of one, i.e. kea-dhcp4.conf, kea-dhcp6.conf, kea-dhcp-ddns.conf
# and kea-ctrl-agent.conf. To facilitate the use of these new files
# the keactrl.conf has been updated in Kea 1.3.0 release. Therefore,
# we install new version of thea keactrl.conf file unconditionally.
# To preserve any user modifications to the old version of the file,
# this old file is backed up as keactrl.conf.bak.
$(mkinstalldirs) $(DESTDIR)/@sysconfdir@/@PACKAGE@
for f in $(CONFIGFILES) ; do \
if test ! -f $(DESTDIR)$(sysconfdir)/@PACKAGE@/$$f; then \
${INSTALL_DATA} $$f $(DESTDIR)$(sysconfdir)/@PACKAGE@/ ; \
fi ; \
if test -f $(DESTDIR)$(sysconfdir)/@PACKAGE@/$$f && \
test $$f = "keactrl.conf"; then \
mv $(DESTDIR)$(sysconfdir)/@PACKAGE@/$$f \
$(DESTDIR)$(sysconfdir)/@PACKAGE@/$$f.bak; \
fi; \
if test ! -f $(DESTDIR)$(sysconfdir)/@PACKAGE@/$$f; then \
${INSTALL_DATA} $$f $(DESTDIR)$(sysconfdir)/@PACKAGE@/; \
fi; \
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment