From 9c82738c5a7ef4e20cbe9720d60bdbc68b700a15 Mon Sep 17 00:00:00 2001 From: Josh Proehl Date: Fri, 31 Mar 2023 12:41:29 -0500 Subject: [PATCH] Only cp default conf if file doesn't already exist closes #75 --- ircDDBGateway/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ircDDBGateway/Makefile b/ircDDBGateway/Makefile index 6118f46..28589c3 100644 --- a/ircDDBGateway/Makefile +++ b/ircDDBGateway/Makefile @@ -15,7 +15,9 @@ ircddbgatewayd: $(OBJECTS) ../ircDDB/IRCDDB.a ../Common/Common.a .PHONY: install install: install -g root -o root -m 0755 ircddbgatewayd $(DESTDIR)$(BINDIR) +ifeq (,$(wildcard $(DESTDIR)$(CONFDIR)/ircddbgateway)) cp ircddbgateway-emptyconfig $(DESTDIR)$(CONFDIR)/ircddbgateway +endif ifeq ($(TARGET), opendv) cp ../debian/ircddbgatewayd.ircddbgatewayd.service $(DESTDIR)/etc/systemd/system/ircddbgatewayd.service endif