gentoo/net-im/ejabberd/files/ejabberd-19.02-0002-Dont-ov...

16 lines
470 B
Diff
Raw Normal View History

2019-03-22 00:31:49 +01:00
diff --git a/Makefile.in b/Makefile.in
index a0b4553d..4675b88a 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -204,8 +204,8 @@ install: all copy-files
chmod 755 ejabberd.init
#
# Service script
- $(SED) -e "s*@ctlscriptpath@*$(SBINDIR)*g" ejabberd.service.template \
- > ejabberd.service
+ [ -f ejabberd.service ] || $(SED) -e "s*@ctlscriptpath@*$(SBINDIR)*g" \
+ ejabberd.service.template > ejabberd.service
chmod 644 ejabberd.service
#
# Spool directory