install
changeset 165 3606d60b07e5
parent 164 32131253c2f1
equal deleted inserted replaced
164:32131253c2f1 165:3606d60b07e5
    45     'src/mercurialserver/servelog.py',
    45     'src/mercurialserver/servelog.py',
    46     'src/mercurialserver/refreshauth.py',
    46     'src/mercurialserver/refreshauth.py',
    47     'src/mercurialserver/ruleset.py')
    47     'src/mercurialserver/ruleset.py')
    48 installFiles(options.prefix + '/share/mercurial-server/init',
    48 installFiles(options.prefix + '/share/mercurial-server/init',
    49     'src/init/hginit',
    49     'src/init/hginit',
       
    50     'src/init/dot-mercurial-server',
    50     'src/init/hgadmin-hgrc')
    51     'src/init/hgadmin-hgrc')
    51 installFiles(options.prefix + '/share/doc/mercurial-server',
    52 installFiles(options.prefix + '/share/doc/mercurial-server',
    52     'README',
    53     'README',
    53     'build/html/index.html')
    54     'build/html/index.html')
    54 installFiles('/etc/mercurial-server',
    55 installFiles('/etc/mercurial-server',
    62     def become():
    63     def become():
    63         os.setgid(p.pw_gid)
    64         os.setgid(p.pw_gid)
    64         os.setegid(p.pw_gid)
    65         os.setegid(p.pw_gid)
    65         os.setuid(p.pw_uid)
    66         os.setuid(p.pw_uid)
    66         os.seteuid(p.pw_uid)
    67         os.seteuid(p.pw_uid)
       
    68         os.chdir(p.pw_dir)
    67     return become
    69     return become
    68 
    70 
    69 if options.root == '':
    71 if options.root == '':
    70     try:
    72     try:
    71        pwd.getpwnam('hg')
    73        pwd.getpwnam('hg')