Skip to content
Snippets Groups Projects
Commit 17be4801 authored by Ondřej Surý's avatar Ondřej Surý
Browse files

Don't overwrite already installed configuration file

parent f38991c8
No related branches found
No related tags found
No related merge requests found
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment