comparison src/system-init.pl @ 25:d956ace7380e

creating pkg-examine.
author Robert McIntyre <rlm@mit.edu>
date Thu, 10 Jan 2013 15:12:34 +0000
parents 4d1bc23e4d09
children 5caff062fd36
comparison
equal deleted inserted replaced
24:eab9ad213a69 25:d956ace7380e
119 119
120 if (!`id hg-committer`){ 120 if (!`id hg-committer`){
121 execute("useradd -c hg-committer -d /pkg/hg-committer -g hg-committer -s /bin/bash hg-committer"); 121 execute("useradd -c hg-committer -d /pkg/hg-committer -g hg-committer -s /bin/bash hg-committer");
122 } 122 }
123 123
124 execute("chown -Rv hg-committer:hg-wheel /.hg"); 124 execute("chown -Rv root:root /.hg");
125 125
126 $pwd = getcwd; 126 $pwd = getcwd;
127 execute("gpasswd --add hg-committer hg-wheel"); 127 execute("gpasswd --add hg-committer hg-wheel");
128 execute("gpasswd --add hg-committer users"); 128 execute("gpasswd --add hg-committer users");
129 execute("gpasswd --add hg-committer install");
129 execute("ln -sf $pwd/profile /pkg/hg-committer/.profile"); 130 execute("ln -sf $pwd/profile /pkg/hg-committer/.profile");
130 execute("ln -sf $pwd/hg-wrapper /pkg/hg-committer/"); 131 execute("ln -sf $pwd/hg-wrapper /pkg/hg-committer/");
131 execute("ln -sf $pwd/save-acls /pkg/hg-committer/"); 132 execute("ln -sf $pwd/save-acls /pkg/hg-committer/");
132 execute("ln -sf `which hg` /pkg/hg-committer/"); 133 execute("ln -sf `which hg` /pkg/hg-committer/");
133 134
134 execute("install -o hg-committer -g hg-wheel -m 660 $pwd/hgignore /.hgignore"); 135 execute("install -o root -g root -m 660 $pwd/hgignore /.hgignore");
135 execute("install -o hg-committer -g hg-wheel -m 660 $pwd/hgrc /.hg/"); 136 execute("install -o root -g root -m 660 $pwd/hgrc /.hg/");
136 137
137 138
138 139