Changes between Version 20 and Version 21 of howto/ZarafaMigrateConnectux


Ignore:
Timestamp:
12/17/10 19:48:56 (7 years ago)
Author:
Edwin Eefting
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • howto/ZarafaMigrateConnectux

    v20 v21  
    3131}}}
    3232
    33  * Om tijd te besparen, zorgen we dat de database rechtstreeks geïmporteerd word op de SYN-3 server, zonder tussenkomt van tijdelijke files:
     33 * Om tijd te besparen, zorgen we dat de database rechtstreeks geïmporteerd word op de SYN-3 server, zonder tussenkomt van tijdelijke files. Voer uit op de Connectux server:
    3434
    3535{{{
     
    4747{{{
    4848#!/bin/bash
    49 
     49# Connectux2Zarafa Conversion script (C)2010 DatuX - Released under GPL
    5050svcdownchk /service/zarafa-server
    5151
    5252
    5353SQLPW=`cat /etc/my.passwd`
    54 
    55 if ! [ "$SKIPUSER" ]; then
    5654
    5755echo "SYN-3: Reading user ID converions:"
     
    8179echo "SYN-3: Updating database:"
    8280echo -e "$QUERY" | mysql -p$SQLPW zarafa || exit 1
    83 fi
    8481
    8582echo "SYN-3: Starting zarafa in conversion mode:"
     83rm /var/log/zarafa/server.log
     84zarafa-server --ignore-attachment-storage-conflict
     85sleep 10
    8686tail -f /var/log/zarafa/server.log &
    87 zarafa-server --ignore-attachment-storage-conflict
    88                                    
    89 while [ `netstat -nap | grep "LISTEN.*zarafa-server" | wc -l` -lt 2 ]; do
     87
     88while ! grep 'Startup succeeded' /var/log/zarafa/server.log; do
    9089    echo "SYN-3: Waiting for conversion to finish..."
    9190    sleep 60
     
    9594
    9695echo "SYN-3: Converting attachments from database to files"
    97 perl /usr/doc/zarafa/db-convert-attachments-to-files root $SQLPW zarafa /home/system/zarafa delete || exit 1
     96perl /usr/doc/zarafa/db-convert-attachments-to-files root $SQLPW zarafa /home/system/zarafa || exit 1
    9897chown -R zarafa:zarafa /home/system/zarafa || exit 1
    9998
     
    102101echo "SYN-3: Conversion done, Zarafa should be available now."
    103102
     103
    104104}}}