equal
deleted
inserted
replaced
20 |
20 |
21 # This must be run as root, because it must create an hg user. |
21 # This must be run as root, because it must create an hg user. |
22 # Normally the clean thing to do is let it fail with a permission error |
22 # Normally the clean thing to do is let it fail with a permission error |
23 # if a non-root user tries to run it, but I don't want anyone thinking |
23 # if a non-root user tries to run it, but I don't want anyone thinking |
24 # that they can make it work as non-root by changing install paths. |
24 # that they can make it work as non-root by changing install paths. |
25 # Patches welcome for doing this more cleanly of course. |
25 # Patches for doing this more cleanly welcome of course. |
26 |
26 |
27 if os.getgid() != 0: |
27 if os.getgid() != 0: |
28 print >>sys.stderr, "Install must be run as root user" |
28 print >>sys.stderr, "Install must be run as root user" |
29 sys.exit(-1) |
29 sys.exit(-1) |
30 |
30 |