Commit 17be4801 authored by Ondřej Surý's avatar Ondřej Surý

Don't overwrite already installed configuration file

parent f38991c8
sysconf_DATA = knotd.conf example.com.zone
edit = sed \
-e 's|@version[@]|$(PACKAGE_VERSION)|g' \
-e 's|@package[@]|$(PACKAGE_NAME)|g' \
......@@ -16,5 +14,11 @@ knotd.conf: Makefile
knotd.conf: knotd.conf.in
install-data-local: knotd.conf
[ -d $(sysconfdir) ] || \
$(INSTALL_DATA) -d $(sysconfdir)
[ -f $(sysconfdir)/knotd.conf ] || \
$(INSTALL_DATA) knotd.conf example.com.zone $(sysconfdir)
clean-local:
rm -f knotd.conf
Markdown is supported
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