equal
deleted
inserted
replaced
15 def refreshAuth(): |
15 def refreshAuth(): |
16 pentry = pwd.getpwuid(os.geteuid()) |
16 pentry = pwd.getpwuid(os.geteuid()) |
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 sys.exit(-1) |
20 |
21 |
21 akeyfile = pentry.pw_dir + "/.ssh/authorized_keys" |
22 akeyfile = pentry.pw_dir + "/.ssh/authorized_keys" |
22 wrappercommand = paths.getExePath() + "/hg-ssh" |
23 wrappercommand = paths.getExePath() + "/hg-ssh" |
23 keydirs = [paths.getEtcPath() + "/keys", pentry.pw_dir + "/repos/hgadmin/keys"] |
24 keydirs = [paths.getEtcPath() + "/keys", pentry.pw_dir + "/repos/hgadmin/keys"] |
24 prefix='no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding,command=' |
25 prefix='no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding,command=' |