Changeset 731 for HelpIM3

Show
Ignore:
Timestamp:
12/22/09 14:47:09 (2 years ago)
Author:
winfried
Message:

- updating tigase setup for setting up tigase 4.3.1 (needed to fix delay in closing webchat)

Location:
HelpIM3
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • HelpIM3/README.txt

    r696 r731  
    4444  - MUC 
    4545  - 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. 
    4749  Tigase needs SUN JDK (not JRE!) version 1.6. 
    4850  The jabber server only needs to listen on the localhost. The connection with external clients is 
     
    9193      --comp-class-1=tigase.muc.MUCComponent 
    9294      muc/muc-allow-chat-states[B]=true 
     95      muc/muc-lock-new-room[B]=false 
    9396      message-router/components/msg-receivers/s2s.active[B]=false 
    9497      basic-conf/logging/java.util.logging.FileHandler.pattern=/var/log/tigase/tigase.log 
  • HelpIM3/tigase_setup.sh

    r593 r731  
    2020done 
    2121 
     22# first create /var/lib/tigase so it will be empty when creating user 
     23if [ ! -d "$DYNSTORE" ]; then 
     24  echo "creating $DYNSTORE" 
     25  mkdir "$DYNSTORE" 
     26fi 
     27 
    2228if [ -z `id -un $TIGASEUSER` ]; then 
    2329  echo "Creating tigase user: $TIGASEUSER (group: $TIGASEGROUP)" 
    2430  addgroup --system $TIGASEGROUP 
    25   adduser --system --ingroup $TIGASEGROUP --no-create-home --disabled-password $TIGASEUSER 
     31  adduser --system --ingroup $TIGASEGROUP --home $DYNSTORE--disabled-password $TIGASEUSER 
    2632fi 
    2733 
    28 # Make dirs 
     34# make sure permissions on /var/lib/tigase are correct 
     35chmod 700 "$DYNSTORE" 
     36chown tigase:tigase "$DYNSTORE" 
    2937 
     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 
     40chgrp $TIGASEGROUP "$TIGASEDIR"/logs 
     41chgrp $TIGASEGROUP "$TIGASEDIR"/logs/* 
     42chmod g+wx "$TIGASEDIR"/logs 
     43chmod g+w "$TIGASEDIR"/logs/* 
     44 
     45# Make other dirs 
    3046if [ ! -d "$LOGDIR" ]; then 
    3147  echo "creating $LOGDIR" 
    3248  mkdir "$LOGDIR" 
    3349  chmod 750 "$LOGDIR" 
    34   chown tigase:adm "$LOGDIR" 
     50  chown $TIGASEUSER:adm "$LOGDIR" 
    3551fi 
    3652 
    37 for DIR in "$RUNDIR" "$DYNSTORE" "$CONFDIR"; do 
     53for DIR in "$RUNDIR" "$CONFDIR"; do 
    3854  if [ ! -d "$DIR" ]; then 
    3955    echo "creating $DIR" 
    4056    mkdir "$DIR" 
    4157    chmod 700 "$DIR" 
    42     chown tigase:tigase "$DIR" 
     58    chown $TIGASEUSER:$TIGASEGROUP "$DIR" 
    4359  fi 
    4460done 
     
    6682if ! grep -q "muc/muc-allow-chat-states[B]=true" "$CONFDIR/init.properties"; then 
    6783  echo "muc/muc-allow-chat-states[B]=true" >> "$CONFDIR/init.properties" 
     84fi 
     85 
     86if ! 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" 
    6888fi 
    6989 
     
    115135fi 
    116136 
     137if grep -q "HOME" "$CONFDIR/tigase.conf"; then 
     138  sed -i "s,HOME=.*,HOME=\"$TIGASEDIR\",g" "$CONFDIR/tigase.conf" 
     139else 
     140  echo "HOME=\"$TIGASEDIR\"" >> "$CONFDIR/tigase.conf" 
     141fi 
     142 
    117143if [ ! -f "/etc/init.d/tigase" ]; then 
    118144  cat > /etc/init.d/tigase <<EOF