- Timestamp:
- 12/22/09 14:47:09 (2 years ago)
- Location:
- HelpIM3
- Files:
-
- 2 modified
-
README.txt (modified) (2 diffs)
-
tigase_setup.sh (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
HelpIM3/README.txt
r696 r731 44 44 - MUC 45 45 - Chat state notifications in the MUC 46 Currently only the Tigase jabber server versions 4.2.0-b1720 and up supports all of these. 46 Currently only the Tigase jabber server versions 4.3.1 and up supports all of these. Don't use 47 Tigase 4.2.0: it contains a bug in the BOSH connection manager that delays closing the chat for 48 5 minutes. 47 49 Tigase needs SUN JDK (not JRE!) version 1.6. 48 50 The jabber server only needs to listen on the localhost. The connection with external clients is … … 91 93 --comp-class-1=tigase.muc.MUCComponent 92 94 muc/muc-allow-chat-states[B]=true 95 muc/muc-lock-new-room[B]=false 93 96 message-router/components/msg-receivers/s2s.active[B]=false 94 97 basic-conf/logging/java.util.logging.FileHandler.pattern=/var/log/tigase/tigase.log -
HelpIM3/tigase_setup.sh
r593 r731 20 20 done 21 21 22 # first create /var/lib/tigase so it will be empty when creating user 23 if [ ! -d "$DYNSTORE" ]; then 24 echo "creating $DYNSTORE" 25 mkdir "$DYNSTORE" 26 fi 27 22 28 if [ -z `id -un $TIGASEUSER` ]; then 23 29 echo "Creating tigase user: $TIGASEUSER (group: $TIGASEGROUP)" 24 30 addgroup --system $TIGASEGROUP 25 adduser --system --ingroup $TIGASEGROUP -- no-create-home--disabled-password $TIGASEUSER31 adduser --system --ingroup $TIGASEGROUP --home $DYNSTORE--disabled-password $TIGASEUSER 26 32 fi 27 33 28 # Make dirs 34 # make sure permissions on /var/lib/tigase are correct 35 chmod 700 "$DYNSTORE" 36 chown tigase:tigase "$DYNSTORE" 29 37 38 # give tigase write permissions in /usr/local/tigase/logs 39 # this due to a bug in tigase 4.3.1, it shouldn't write there 40 chgrp $TIGASEGROUP "$TIGASEDIR"/logs 41 chgrp $TIGASEGROUP "$TIGASEDIR"/logs/* 42 chmod g+wx "$TIGASEDIR"/logs 43 chmod g+w "$TIGASEDIR"/logs/* 44 45 # Make other dirs 30 46 if [ ! -d "$LOGDIR" ]; then 31 47 echo "creating $LOGDIR" 32 48 mkdir "$LOGDIR" 33 49 chmod 750 "$LOGDIR" 34 chown tigase:adm "$LOGDIR"50 chown $TIGASEUSER:adm "$LOGDIR" 35 51 fi 36 52 37 for DIR in "$RUNDIR" "$ DYNSTORE" "$CONFDIR"; do53 for DIR in "$RUNDIR" "$CONFDIR"; do 38 54 if [ ! -d "$DIR" ]; then 39 55 echo "creating $DIR" 40 56 mkdir "$DIR" 41 57 chmod 700 "$DIR" 42 chown tigase:tigase"$DIR"58 chown $TIGASEUSER:$TIGASEGROUP "$DIR" 43 59 fi 44 60 done … … 66 82 if ! grep -q "muc/muc-allow-chat-states[B]=true" "$CONFDIR/init.properties"; then 67 83 echo "muc/muc-allow-chat-states[B]=true" >> "$CONFDIR/init.properties" 84 fi 85 86 if ! grep -q "muc/muc-lock-new-room[B]=false" "$CONFDIR/init.properties"; then 87 echo "muc/muc-lock-new-room[B]=false" >> "$CONFDIR/init.properties" 68 88 fi 69 89 … … 115 135 fi 116 136 137 if grep -q "HOME" "$CONFDIR/tigase.conf"; then 138 sed -i "s,HOME=.*,HOME=\"$TIGASEDIR\",g" "$CONFDIR/tigase.conf" 139 else 140 echo "HOME=\"$TIGASEDIR\"" >> "$CONFDIR/tigase.conf" 141 fi 142 117 143 if [ ! -f "/etc/init.d/tigase" ]; then 118 144 cat > /etc/init.d/tigase <<EOF
