equal
deleted
inserted
replaced
65 os.setegid(p.pw_gid) |
65 os.setegid(p.pw_gid) |
66 os.setuid(p.pw_uid) |
66 os.setuid(p.pw_uid) |
67 os.seteuid(p.pw_uid) |
67 os.seteuid(p.pw_uid) |
68 return become |
68 return become |
69 |
69 |
70 try: |
70 if options.root == '': |
71 pwd.getpwnam('hg') |
71 try: |
72 except KeyError: |
72 pwd.getpwnam('hg') |
73 subprocess.check_call( |
73 except KeyError: |
74 "adduser --system --shell /bin/sh --group --disabled-password".split() + |
74 subprocess.check_call( |
75 ["--gecos", "Mercurial repositories", "hg"]) |
75 "adduser --system --shell /bin/sh --group --disabled-password".split() + |
76 subprocess.check_call([dest + '/init/hginit'], preexec_fn = becomeFunc('hg')) |
76 ["--gecos", "Mercurial repositories", "hg"]) |
|
77 subprocess.check_call([options.prefix + '/lib/mercurial-server/init/hginit'], |
|
78 preexec_fn = becomeFunc('hg')) |
77 |
79 |