X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fetc%2Fupgrade%2F3.8-ical-extension;h=fa6cfd003de26d1188759e73bdb3950339dae2f2;hb=43a06151e47d2c59b833cbd8c26d97865ee850b6;hp=a241ee2a1a1e52eff89881c67a7a405fd4480f23;hpb=6587f6ba7d047ddc1686c080090afe7d53365bd4;p=freeside.git diff --git a/rt/etc/upgrade/3.8-ical-extension b/rt/etc/upgrade/3.8-ical-extension index a241ee2a1..fa6cfd003 100755 --- a/rt/etc/upgrade/3.8-ical-extension +++ b/rt/etc/upgrade/3.8-ical-extension @@ -3,7 +3,7 @@ # # COPYRIGHT: # -# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC +# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC # # # (Except where explicitly superseded by other copyright notices) @@ -49,8 +49,8 @@ use strict; use warnings; -use lib "local/lib"; -use lib "lib"; +use lib "/opt/rt3/local/lib"; +use lib "/opt/rt3/lib"; use RT; @@ -58,14 +58,14 @@ RT::LoadConfig(); RT::Init(); use RT::Attributes; -my $attrs = RT::Attributes->new( $RT::SystemUser ); +my $attrs = RT::Attributes->new( RT->SystemUser ); $attrs->Limit(FIELD => 'ObjectType', OPERATOR=> '=', VALUE => 'RT::User'); $attrs->Limit(FIELD => 'Name', OPERATOR=> '=', VALUE => 'ical-auth-token'); while ( my $attr = $attrs->Next ) { my $uid = $attr->ObjectId; print "Processing auth token of user #". $uid ."...\n"; - my $user = RT::User->new( $RT::SystemUser ); + my $user = RT::User->new( RT->SystemUser ); $user->Load( $uid ); unless ( $user->id ) { print STDERR "\tERROR. Couldn't load user record\n";