install
changeset 89 30a8be7ce326
parent 87 535502c18eaa
child 90 03004026cbac
equal deleted inserted replaced
88:ae1503386576 89:30a8be7ce326
    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