26
1
mirror of https://github.com/processone/ejabberd.git synced 2025-01-03 18:02:28 +01:00

* src/Makefile.in: Fix docdir so it recognizes prefix. If sbin dir

does not exist, create it. Fix cookiefile permission
check. (EJAB-696)

SVN Revision: 1442
This commit is contained in:
Badlop 2008-07-13 23:32:54 +00:00
parent f25316c1e7
commit d76ca7c65b
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2008-07-14 Badlop <badlop@process-one.net>
* src/Makefile.in: Fix docdir so it recognizes prefix. If sbin dir
does not exist, create it. Fix cookiefile permission
check. (EJAB-696)
2008-07-13 Badlop <badlop@process-one.net>
* src/configure.ac: Update installation permissions (EJAB-402)

View File

@ -71,7 +71,7 @@ EJABBERDDIR = $(DESTDIR)@libdir@/ejabberd
# /share/doc/ejabberd
PACKAGE_TARNAME = @PACKAGE_TARNAME@
DATAROOTDIR = @datarootdir@
datarootdir = @datarootdir@
DOCDIR = @docdir@
# /usr/lib/ejabberd/ebin/
@ -164,6 +164,7 @@ install: all
install -b -m 644 -g @INSTALLUSER@ inetrc $(ETCDIR)/inetrc
#
# Administration script
[ -d $(SBINDIR) ] || install -d 750 $(SBINDIR)
install -m 550 -g @INSTALLUSER@ ejabberdctl.example $(SBINDIR)/ejabberdctl
#
# Binary Erlang files
@ -192,7 +193,7 @@ install: all
install -d -m 750 -o @INSTALLUSER@ $(SPOOLDIR)
chown -R @INSTALLUSER@ $(SPOOLDIR)
chmod -R 750 $(SPOOLDIR)
[ ! -f $(COOKIEFILE) ] || chown -o @INSTALLUSER@ $(COOKIEFILE) ; chmod 400 $(COOKIEFILE)
[ ! -f $(COOKIEFILE) ] || { chown @INSTALLUSER@ $(COOKIEFILE) ; chmod 400 $(COOKIEFILE) ; }
#
# Log directory
install -d -m 750 -o @INSTALLUSER@ $(LOGDIR)