Changes between Version 21 and Version 22 of howto/ZarafaMigrateConnectux
- Timestamp:
- 01/07/11 20:03:28 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
howto/ZarafaMigrateConnectux
v21 v22 25 25 [Syn-3] root@syn.kado.local ~# svcstop /service/zarafa-server/ 26 26 Stopping /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/* 28 28 Database "zarafa" dropped 29 29 [Syn-3] root@syn.kado.local ~# … … 47 47 {{{ 48 48 #!/bin/bash 49 # Connectux2Zarafa Conversion script (C)2010 DatuX - Released under GPL 49 50 50 svcdownchk /service/zarafa-server 51 51 … … 57 57 for OLDUID in `echo 'select externid from users where object_type=1 and externid>0' |mysql -p$SQLPW zarafa`; do 58 58 [ "$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:` 62 62 echo "$OLDUID -> $USER -> $NEWUID" 63 63 if [ "$USER" == "" ]; then … … 82 82 echo "SYN-3: Starting zarafa in conversion mode:" 83 83 rm /var/log/zarafa/server.log 84 zarafa-server --ignore-attachment-storage-conflict 84 zarafa-server --ignore-attachment-storage-conflict 85 85 sleep 10 86 86 tail -f /var/log/zarafa/server.log & … … 101 101 echo "SYN-3: Conversion done, Zarafa should be available now." 102 102 103 104 103 }}}