action/test1
changeset 272 f7c64f03cd60
parent 271 c1ceab337505
child 273 7bae88583a53
--- a/action/test1	Fri Dec 17 14:31:50 2010 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,41 +0,0 @@
-#!/bin/sh
-
-set -e
-
-cd
-
-cat > .ssh/config <<__END__
-Host chroothg
-Hostname localhost
-User hg
-Port 2222
-__END__
-
-echo "Cloning hgadmin..."
-hg clone ssh://chroothg/hgadmin
-echo "Updating hgadmin..."
-cd hgadmin
-
-cat > access.conf <<__END__
-read user=restricted/** file=denied/**
-write user=restricted/**
-__END__
-mkdir -p keys/restricted
-cp /home/test2/.ssh/id_rsa.pub keys/restricted/test2
-
-hg add keys/restricted/test2 access.conf
-hg commit -u test1 -m "Added user test2"
-echo "Push"
-hg push
-cd ..
-mkdir realrepo
-cd realrepo
-hg init .
-mkdir denied
-echo "This is a file" > content
-echo "This is a file not everyone can write to" > denied/cantwrite
-hg add content denied/cantwrite
-hg commit -u test1 -m "Add files to the repo"
-echo "Pushing changes"
-hg clone . ssh://chroothg/real/project
-echo "Done for user test1"