Fixes the alias synchronization query in the gapps cronjob. It was
authorVincent Zanotti <vincent.zanotti@m4x.org>
Sat, 26 Mar 2011 18:22:58 +0000 (19:22 +0100)
committerVincent Zanotti <vincent.zanotti@m4x.org>
Sat, 26 Mar 2011 18:22:58 +0000 (19:22 +0100)
accidentally trying to synchronize forlifes as aliases, which causes all
previous aliases to be dropped from gapps.

Signed-off-by: Vincent Zanotti <vincent.zanotti@m4x.org>
bin/cron/google_apps.php

index 9b6f78d..c23f7d1 100755 (executable)
@@ -111,7 +111,7 @@ while ($nickname = $res->next()) {
 $res = XDB::iterator(
     "SELECT  g.l_userid AS id, g.g_nickname AS nickname
        FROM  gapps_nicknames AS g
-  LEFT JOIN  email_source_account AS s ON (s.uid = g.l_userid AND s.type = 'forlife' AND s.email = g.g_nickname)
+  LEFT JOIN  email_source_account AS s ON (s.uid = g.l_userid AND s.type = 'alias' AND s.email = g.g_nickname)
       WHERE  g.l_userid IS NOT NULL AND s.email IS NULL");
 while ($nickname = $res->next()) {
     XDB::execute(