25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-30 16:36:29 +01:00

Allow run joincluster as non root when ejabberd installed as root (#497)

This commit is contained in:
Christophe Romain 2015-05-13 15:54:28 +02:00
parent 09f5565ca0
commit dbcfd38c18

View File

@ -95,8 +95,7 @@ REMOTENAME=-name
set -o errexit set -o errexit
set -o nounset set -o nounset
[ -d $SPOOL_DIR ] && rm -Rf $SPOOL_DIR [ -d $SPOOL_DIR ] && rm -Rf $SPOOL_DIR/* || mkdir -p $SPOOL_DIR || error "$SPOOL_DIR cannot be created" 20
mkdir $SPOOL_DIR || error "$SPOOL_DIR cannot be created" 20
[ -w $SPOOL_DIR ] || error "$SPOOL_DIR directory is not writable" 21 [ -w $SPOOL_DIR ] || error "$SPOOL_DIR directory is not writable" 21
mkdir -p $PA || error "$PA cannot be created" 22 mkdir -p $PA || error "$PA cannot be created" 22
cd $PA cd $PA