Changes between Version 20 and Version 21 of howto/ZarafaMigrateConnectux
- Timestamp:
- 12/17/10 19:48:56 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
howto/ZarafaMigrateConnectux
v20 v21 31 31 }}} 32 32 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: 34 34 35 35 {{{ … … 47 47 {{{ 48 48 #!/bin/bash 49 49 # Connectux2Zarafa Conversion script (C)2010 DatuX - Released under GPL 50 50 svcdownchk /service/zarafa-server 51 51 52 52 53 53 SQLPW=`cat /etc/my.passwd` 54 55 if ! [ "$SKIPUSER" ]; then56 54 57 55 echo "SYN-3: Reading user ID converions:" … … 81 79 echo "SYN-3: Updating database:" 82 80 echo -e "$QUERY" | mysql -p$SQLPW zarafa || exit 1 83 fi84 81 85 82 echo "SYN-3: Starting zarafa in conversion mode:" 83 rm /var/log/zarafa/server.log 84 zarafa-server --ignore-attachment-storage-conflict 85 sleep 10 86 86 tail -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 88 while ! grep 'Startup succeeded' /var/log/zarafa/server.log; do 90 89 echo "SYN-3: Waiting for conversion to finish..." 91 90 sleep 60 … … 95 94 96 95 echo "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 196 perl /usr/doc/zarafa/db-convert-attachments-to-files root $SQLPW zarafa /home/system/zarafa || exit 1 98 97 chown -R zarafa:zarafa /home/system/zarafa || exit 1 99 98 … … 102 101 echo "SYN-3: Conversion done, Zarafa should be available now." 103 102 103 104 104 }}}