Re: [gitorious] Suspended admin user.

47 views
Skip to first unread message

Thomas Kjeldahl Nilsson

unread,
Nov 13, 2012, 4:57:58 AM11/13/12
to gito...@googlegroups.com
On 11/13/2012 04:07 AM, Rohit Ramesh wrote:
> I was cleaning up some random logins, and I seem to have suspended my
> admin user.
>
> I've got a significant amount of work under that username, and it
> would be nice to unsuspend it without losing my repositories and whatnot.
>
> Is there any way i can dot his with SSH access to the server running
> gitorious?
>
> A quick modification of the suspend-user script to call
> user.unsuspend, didn't seem to do anything.
> --
> To post to this group, send email to gito...@googlegroups.com
> To unsubscribe from this group, send email to
> gitorious+...@googlegroups.com
Hello Rohit,

this should work: log in via ssh, go to the root of your gitorious
installation, run something like this:
RAILS_ENV=production script/runner
'u=User.find_by_email("ADMIN_EMAIL_ADDRESS");u.suspended_at=nil;u.save!'

--
best regards,
Thomas Kjeldahl Nilsson
Partner & programmer, Gitorious AS
http://gitorious.com

Rohit Ramesh

unread,
Nov 14, 2012, 9:59:02 AM11/14/12
to gito...@googlegroups.com, tho...@gitorious.com
aha, thanks a ton. 
Reply all
Reply to author
Forward
0 new messages