src/refresh-auth
changeset 79 3a58a95fae2f
parent 76 e6a35b0f853c
child 86 78777f509303
equal deleted inserted replaced
78:2a3407a14654 79:3a58a95fae2f
     5 # This script completely destroys your ~/.ssh/authorized_keys
     5 # This script completely destroys your ~/.ssh/authorized_keys
     6 # file every time it is run
     6 # file every time it is run
     7 # WARNING
     7 # WARNING
     8 
     8 
     9 import sys
     9 import sys
    10 from mercurialserver import refreshauth
    10 from mercurialserver import refreshauth, paths
    11 
    11 
    12 if len(sys.argv) != 1:
    12 if len(sys.argv) != 1:
    13     sys.stderr.write("refresh-auth: must be called with no arguments (%s)\n" % sys.argv)
    13     sys.stderr.write("refresh-auth: must be called with no arguments (%s)\n" % sys.argv)
    14     sys.exit(-1)
    14     sys.exit(-1)
    15 
    15 
       
    16 paths.setExePath()
       
    17 
    16 refreshauth.refreshAuth()
    18 refreshauth.refreshAuth()