Mercurial > pkg
diff 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 |
line wrap: on
line diff
1.1 --- a/src/system-init.pl Thu Jan 10 04:25:17 2013 +0000 1.2 +++ b/src/system-init.pl Thu Jan 10 07:02:49 2013 +0000 1.3 @@ -111,10 +111,9 @@ 1.4 create_install_dir($install_dir);} 1.5 1.6 1.7 -execute("find /.hg -type d -print0 | xargs -0 -L 1 -t chmod 770"); 1.8 +execute("find /.hg -type d -print0 | xargs -0 -L 1 -t chmod 2770"); 1.9 execute("find /.hg -type f -print0 | xargs -0 -L 1 -t chmod 660"); 1.10 1.11 - 1.12 execute("groupadd --force hg-committer"); 1.13 execute("groupadd --force hg-wheel"); 1.14 1.15 @@ -126,10 +125,12 @@ 1.16 1.17 $pwd = getcwd; 1.18 execute("gpasswd --add hg-committer hg-wheel"); 1.19 +execute("gpasswd --add hg-committer users"); 1.20 execute("ln -sf $pwd/profile /pkg/hg-committer/.profile"); 1.21 +execute("ln -sf $pwd/hgrc /pkg/hg-committer/.hgrc"); 1.22 execute("ln -sf $pwd/hg-wrapper /pkg/hg-committer/"); 1.23 execute("ln -sf `which hg` /pkg/hg-committer/"); 1.24 +execute("install -o hg-committer -g hg-wheel -m 660 $pwd/hgignore /.hgignore"); 1.25 1.26 1.27 1.28 -