comparison src/system-init.pl @ 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 819e950ac8cc
comparison
equal deleted inserted replaced
25:d956ace7380e 26:5caff062fd36
112 112
113 113
114 execute("find /.hg -type d -print0 | xargs -0 -L 1 -t chmod 2770"); 114 execute("find /.hg -type d -print0 | xargs -0 -L 1 -t chmod 2770");
115 execute("find /.hg -type f -print0 | xargs -0 -L 1 -t chmod 660"); 115 execute("find /.hg -type f -print0 | xargs -0 -L 1 -t chmod 660");
116 116
117 execute("groupadd --force hg-committer"); 117 execute("install -d -o root -g root -m 755 /pkg/skel");
118 execute("groupadd --force hg-wheel");
119
120 if (!`id hg-committer`){
121 execute("useradd -c hg-committer -d /pkg/hg-committer -g hg-committer -s /bin/bash hg-committer");
122 }
123 118
124 execute("chown -Rv root:root /.hg"); 119 execute("chown -Rv root:root /.hg");
125 120
126 $pwd = getcwd; 121 $pwd = getcwd;
127 execute("gpasswd --add hg-committer hg-wheel"); 122 execute("ln -sf $pwd/profile /pkg/skel/.profile");
128 execute("gpasswd --add hg-committer users"); 123 execute("ln -sf $pwd/hg-wrapper /pkg/skel/");
129 execute("gpasswd --add hg-committer install"); 124 execute("ln -sf $pwd/save-acls /pkg/skel/");
130 execute("ln -sf $pwd/profile /pkg/hg-committer/.profile"); 125 execute("ln -sf `which hg` /pkg/skel/");
131 execute("ln -sf $pwd/hg-wrapper /pkg/hg-committer/");
132 execute("ln -sf $pwd/save-acls /pkg/hg-committer/");
133 execute("ln -sf `which hg` /pkg/hg-committer/");
134 126
135 execute("install -o root -g root -m 660 $pwd/hgignore /.hgignore"); 127 execute("install -o root -g root -m 660 $pwd/hgignore /.hgignore");
136 execute("install -o root -g root -m 660 $pwd/hgrc /.hg/"); 128 execute("install -o root -g root -m 660 $pwd/hgrc /.hg/");
137 129
138 130