comparison src/system-init.pl @ 21:d46aeb3166d0

going to work on file permissions/ownership since mercurial doesn't track them.
author Robert McIntyre <rlm@mit.edu>
date Thu, 10 Jan 2013 07:02:49 +0000
parents c75924bd38e3
children 43cfd1a2c523
comparison
equal deleted inserted replaced
20:c75924bd38e3 21:d46aeb3166d0
109 109
110 foreach $install_dir(@install_dirs){ 110 foreach $install_dir(@install_dirs){
111 create_install_dir($install_dir);} 111 create_install_dir($install_dir);}
112 112
113 113
114 execute("find /.hg -type d -print0 | xargs -0 -L 1 -t chmod 770"); 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
117 116
118 execute("groupadd --force hg-committer"); 117 execute("groupadd --force hg-committer");
119 execute("groupadd --force hg-wheel"); 118 execute("groupadd --force hg-wheel");
120 119
121 if (!`id hg-committer`){ 120 if (!`id hg-committer`){
124 123
125 execute("chown -Rv hg-committer:hg-wheel /.hg"); 124 execute("chown -Rv hg-committer:hg-wheel /.hg");
126 125
127 $pwd = getcwd; 126 $pwd = getcwd;
128 execute("gpasswd --add hg-committer hg-wheel"); 127 execute("gpasswd --add hg-committer hg-wheel");
128 execute("gpasswd --add hg-committer users");
129 execute("ln -sf $pwd/profile /pkg/hg-committer/.profile"); 129 execute("ln -sf $pwd/profile /pkg/hg-committer/.profile");
130 execute("ln -sf $pwd/hgrc /pkg/hg-committer/.hgrc");
130 execute("ln -sf $pwd/hg-wrapper /pkg/hg-committer/"); 131 execute("ln -sf $pwd/hg-wrapper /pkg/hg-committer/");
131 execute("ln -sf `which hg` /pkg/hg-committer/"); 132 execute("ln -sf `which hg` /pkg/hg-committer/");
133 execute("install -o hg-committer -g hg-wheel -m 660 $pwd/hgignore /.hgignore");
132 134
133 135
134 136
135