src/mercurialserver/refreshauth.py
changeset 79 3a58a95fae2f
parent 75 5af89523a9d3
child 85 80fa761c7f5d
equal deleted inserted replaced
78:2a3407a14654 79:3a58a95fae2f
    17     if pentry.pw_name != "hg":
    17     if pentry.pw_name != "hg":
    18         # FIXME: re-execute
    18         # FIXME: re-execute
    19         print >>sys.stderr, "Must be run as the 'hg' user"
    19         print >>sys.stderr, "Must be run as the 'hg' user"
    20 
    20 
    21     akeyfile = pentry.pw_dir + "/.ssh/authorized_keys"
    21     akeyfile = pentry.pw_dir + "/.ssh/authorized_keys"
    22     wrappercommand = paths.getEtcPath() + "/hg-ssh-wrapper"
    22     wrappercommand = paths.getExePath() + "/hg-ssh"
    23     keydirs = [paths.getEtcPath() + "/keys", pentry.pw_dir + "/repos/hgadmin/keys"]
    23     keydirs = [paths.getEtcPath() + "/keys", pentry.pw_dir + "/repos/hgadmin/keys"]
    24     prefix='no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding,command='
    24     prefix='no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding,command='
    25 
    25 
    26     if os.path.exists(akeyfile):
    26     if os.path.exists(akeyfile):
    27         f = open(akeyfile)
    27         f = open(akeyfile)