Only cp default conf if file doesn't already exist

closes #75
This commit is contained in:
Josh Proehl 2023-03-31 12:41:29 -05:00
parent 91f446c6fe
commit 9c82738c5a

View file

@ -15,7 +15,9 @@ ircddbgatewayd: $(OBJECTS) ../ircDDB/IRCDDB.a ../Common/Common.a
.PHONY: install .PHONY: install
install: install:
install -g root -o root -m 0755 ircddbgatewayd $(DESTDIR)$(BINDIR) install -g root -o root -m 0755 ircddbgatewayd $(DESTDIR)$(BINDIR)
ifeq (,$(wildcard $(DESTDIR)$(CONFDIR)/ircddbgateway))
cp ircddbgateway-emptyconfig $(DESTDIR)$(CONFDIR)/ircddbgateway cp ircddbgateway-emptyconfig $(DESTDIR)$(CONFDIR)/ircddbgateway
endif
ifeq ($(TARGET), opendv) ifeq ($(TARGET), opendv)
cp ../debian/ircddbgatewayd.ircddbgatewayd.service $(DESTDIR)/etc/systemd/system/ircddbgatewayd.service cp ../debian/ircddbgatewayd.ircddbgatewayd.service $(DESTDIR)/etc/systemd/system/ircddbgatewayd.service
endif endif