src/do-refresh-auth
author Paul Crowley <paul@lshift.net>
Fri, 06 Mar 2009 12:51:07 +0000
changeset 74 9d2ae2841bf2
parent 73 5d81ec164e5d
permissions -rwxr-xr-x
Move meat of do-refresh-auth into a module

#!/usr/bin/env python
# Copyright 2008-2009 LShift Ltd

# WARNING
# This script completely destroys your ~/.ssh/authorized_keys
# file every time it is run
# WARNING

import sys
from mercurialserver import refreshauth

if len(sys.argv) != 1:
    sys.stderr.write("refresh-auth: must be called with no arguments (%s)\n" % sys.argv)
    sys.exit(-1)

refreshauth.refreshAuth()