infra/codestorage/hg-ssh

Paddy 2015-10-14 Parent:2f4a2a20ad6d Child:bf7b66df555f

4:1b1ca7817a10 Go to Latest

infra/codestorage/hg-ssh/run.sh

Set trust settings to avoid annoying message. Update the hgrc to trust the .hgrc files of everyone in the committers group, because I got tired of seeing the "not trusting file /mounted/repos/blah-blah/.hg/hgrc from untrusted user root, group committers" message every time I pushed.

History
1 #!/bin/bash
3 # We need to reexecute these commands
4 # because Kubernetes doesn't use the
5 # VOLUME commands in the Dockerfiles
6 # when using volumes. So this makes
7 # things work on Kubernetes, but the
8 # Dockerfile makes things work when
9 # running locally.
10 mkdir -p /mounted/repos
11 chgrp -R committers /mounted
12 chmod -R 0770 /mounted
14 /bin/bash /usr/local/bin/helpers/pull.sh
15 /bin/bash /usr/local/bin/helpers/pullkeys.sh
16 /usr/sbin/sshd -D