Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2013-04-04 15:36:15 +0400
committerBadlop <badlop@process-one.net>2013-04-04 15:36:15 +0400
commitcbd30623658932f9a513619680e3e8ad1025d98f (patch)
tree9a7152bbb73325e6b0ba782278919a65b6c9d0a5 /src
parent65298d34c9587d00bb37fd3c7c465611ab6fd2d7 (diff)
Don't overwrite inetrc when installing (thanks to skeltoac)
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Makefile.in b/src/Makefile.in
index 4c7c2501c..0b34d186d 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -198,7 +198,9 @@ install: all
[ -f $(ETCDIR)/ejabberdctl.cfg ] \
&& install -b -m 640 $(G_USER) ejabberdctl.cfg.example $(ETCDIR)/ejabberdctl.cfg-new \
|| install -b -m 640 $(G_USER) ejabberdctl.cfg.example $(ETCDIR)/ejabberdctl.cfg
- install -b -m 644 $(G_USER) inetrc $(ETCDIR)/inetrc
+ [ -f $(ETCDIR)/inetrc ] \
+ && install -b -m 644 $(G_USER) inetrc $(ETCDIR)/inetrc-new \
+ || install -b -m 644 $(G_USER) inetrc $(ETCDIR)/inetrc
#
# Administration script
[ -d $(SBINDIR) ] || install -d -m 755 $(SBINDIR)