[config] Experiment with not overwriting forked-daapd.conf

This commit is contained in:
ejurgensen 2019-04-12 23:04:32 +02:00
parent f317c887b4
commit 545efea37e
1 changed files with 2 additions and 2 deletions

View File

@ -4,8 +4,6 @@ RPM_SPEC_FILE = forked-daapd.spec
CONF_FILE = forked-daapd.conf
SYSTEMD_SERVICE_FILE = forked-daapd.service
sysconf_DATA = $(CONF_FILE)
BUILT_SOURCES = $(CONF_FILE) $(SYSTEMD_SERVICE_FILE)
SUBDIRS = sqlext src htdocs
@ -27,6 +25,8 @@ EXTRA_DIST = \
$(RPM_SPEC_FILE)
install-data-hook:
$(MKDIR_P) "$(DESTDIR)$(sysconfdir)"
[ -f "$(DESTDIR)$(sysconfdir)/$(CONF_FILE)" ] || $(INSTALL_DATA) $(CONF_FILE) "$(DESTDIR)$(sysconfdir)/$(CONF_FILE)"
$(MKDIR_P) "$(DESTDIR)$(localstatedir)/cache/$(PACKAGE)/libspotify"
$(MKDIR_P) "$(DESTDIR)$(localstatedir)/log"
$(MKDIR_P) "$(DESTDIR)$(localstatedir)/run"