changeset 26:5caff062fd36

removed hg-committer in favor of root.
author Robert McIntyre <rlm@mit.edu>
date Thu, 10 Jan 2013 15:20:27 +0000
parents d956ace7380e
children 738745bfa17b
files src/hg-wrapper.c src/pkg.pl src/system-init.pl
diffstat 3 files changed, 10 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
     1.1 --- a/src/hg-wrapper.c	Thu Jan 10 15:12:34 2013 +0000
     1.2 +++ b/src/hg-wrapper.c	Thu Jan 10 15:20:27 2013 +0000
     1.3 @@ -3,7 +3,7 @@
     1.4  
     1.5  main( int argc, char ** argv){
     1.6    pipecmd* p = 
     1.7 -    pipecmd_new("/pkg/hg-committer/hg");
     1.8 +    pipecmd_new("/pkg/skel/hg");
     1.9  
    1.10    int i;
    1.11    for(i = 1; i < argc; i++){
     2.1 --- a/src/pkg.pl	Thu Jan 10 15:12:34 2013 +0000
     2.2 +++ b/src/pkg.pl	Thu Jan 10 15:20:27 2013 +0000
     2.3 @@ -75,21 +75,21 @@
     2.4  
     2.5  sub copy_default_file {
     2.6    execute(("install", "-g", $pkg_name, "-o", $pkg_name,
     2.7 -	   "/pkg/hg-committer/$_[0]", "$pkg_home"));
     2.8 +	   "/pkg/skel/$_[0]", "$pkg_home"));
     2.9  }
    2.10  
    2.11  
    2.12  @pkg_link_bashrc_cmd =
    2.13  ("install", "-g", $pkg_name, "-o", $pkg_name,
    2.14 -   "/pkg/hg-committer/.profile", "$pkg_home/.profile");
    2.15 +   "/pkg/skel/.profile", "$pkg_home/.profile");
    2.16  
    2.17  @pkg_copy_hg_wrapper_cmd =
    2.18    ("install", "-g", "root", "-o", "root",
    2.19 -   "-m", "6111", "/pkg/hg-committer/hg-wrapper", "$pkg_home/.hg-wrapper");
    2.20 +   "-m", "6111", "/pkg/skel/hg-wrapper", "$pkg_home/.hg-wrapper");
    2.21  
    2.22  @pkg_copy_save_acls_cmd =
    2.23    ("install", "-g", "root", "-o", "root",
    2.24 -   "-m", "6111", "/pkg/hg-committer/save-acls", "$pkg_home/.save-acls");
    2.25 +   "-m", "6111", "/pkg/skel/save-acls", "$pkg_home/.save-acls");
    2.26  
    2.27  sub execute{print "\t@_\n"; system(@_) and die $!;}
    2.28  
     3.1 --- a/src/system-init.pl	Thu Jan 10 15:12:34 2013 +0000
     3.2 +++ b/src/system-init.pl	Thu Jan 10 15:20:27 2013 +0000
     3.3 @@ -114,23 +114,15 @@
     3.4  execute("find /.hg -type d -print0 | xargs -0 -L 1 -t chmod 2770");
     3.5  execute("find /.hg -type f -print0 | xargs -0 -L 1 -t chmod 660");
     3.6  
     3.7 -execute("groupadd --force hg-committer");
     3.8 -execute("groupadd --force hg-wheel");
     3.9 -
    3.10 -if (!`id hg-committer`){
    3.11 -    execute("useradd -c hg-committer -d /pkg/hg-committer -g hg-committer -s /bin/bash hg-committer");
    3.12 -}
    3.13 +execute("install -d -o root -g root -m 755 /pkg/skel");
    3.14  
    3.15  execute("chown -Rv root:root /.hg");
    3.16  
    3.17  $pwd = getcwd;
    3.18 -execute("gpasswd --add hg-committer hg-wheel");
    3.19 -execute("gpasswd --add hg-committer users");
    3.20 -execute("gpasswd --add hg-committer install");
    3.21 -execute("ln -sf $pwd/profile  /pkg/hg-committer/.profile");
    3.22 -execute("ln -sf $pwd/hg-wrapper /pkg/hg-committer/");
    3.23 -execute("ln -sf $pwd/save-acls /pkg/hg-committer/");
    3.24 -execute("ln -sf `which hg` /pkg/hg-committer/");
    3.25 +execute("ln -sf $pwd/profile  /pkg/skel/.profile");
    3.26 +execute("ln -sf $pwd/hg-wrapper /pkg/skel/");
    3.27 +execute("ln -sf $pwd/save-acls /pkg/skel/");
    3.28 +execute("ln -sf `which hg` /pkg/skel/");
    3.29  
    3.30  execute("install -o root -g root -m 660 $pwd/hgignore /.hgignore"); 
    3.31  execute("install -o root -g root -m 660 $pwd/hgrc /.hg/");