Changes between Version 21 and Version 22 of howto/ZarafaMigrateConnectux


Ignore:
Timestamp:
01/07/11 20:03:28 (14 years ago)
Author:
Edwin Eefting
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • howto/ZarafaMigrateConnectux

    v21 v22  
    2525[Syn-3] root@syn.kado.local ~# svcstop /service/zarafa-server/                                                                                                                               
    2626Stopping /service/zarafa-server/ ....OK
    27 [Syn-3] root@syn.kado.local ~#  mysqladmin -f -p`cat /etc/my.passwd` drop zarafa && mysqladmin -p`cat /etc/my.passwd` create zarafa                                                                                        
     27[Syn-3] root@syn.kado.local ~#  mysqladmin -f -p`cat /etc/my.passwd` drop zarafa && mysqladmin -p`cat /etc/my.passwd` create zarafa && rm -r /home/system/zarafa/*               
    2828Database "zarafa" dropped
    2929[Syn-3] root@syn.kado.local ~#
     
    4747{{{
    4848#!/bin/bash
    49 # Connectux2Zarafa Conversion script (C)2010 DatuX - Released under GPL
     49
    5050svcdownchk /service/zarafa-server
    5151
     
    5757for OLDUID in `echo 'select externid from users where object_type=1 and externid>0' |mysql -p$SQLPW zarafa`; do
    5858    [ "$OLDUID" == "externid" ] && continue;
    59    
    60     USER=`cat ~/passwd |egrep ".+:.+:$OLDUID:"|cut -f1 -d:` 
    61     NEWUID=`getent passwd |egrep "$USER:.+:.+:"|cut -f3 -d:` 
     59
     60    USER=`cat ~/passwd |egrep ".+:.+:$OLDUID:"|cut -f1 -d:`
     61    NEWUID=`getent passwd |egrep "$USER:.+:.+:"|cut -f3 -d:`
    6262    echo "$OLDUID -> $USER -> $NEWUID"
    6363    if [ "$USER" == "" ];  then
     
    8282echo "SYN-3: Starting zarafa in conversion mode:"
    8383rm /var/log/zarafa/server.log
    84 zarafa-server --ignore-attachment-storage-conflict 
     84zarafa-server --ignore-attachment-storage-conflict
    8585sleep 10
    8686tail -f /var/log/zarafa/server.log &
     
    101101echo "SYN-3: Conversion done, Zarafa should be available now."
    102102
    103 
    104103}}}