dev/chroot-test/action/go
branchdebian
changeset 277 265b258904d2
parent 272 f7c64f03cd60
child 282 1239880543cf
equal deleted inserted replaced
261:b6e65bddda7c 277:265b258904d2
       
     1 #!/bin/sh
       
     2 
       
     3 set -e
       
     4 
       
     5 cd action
       
     6 
       
     7 ls -l
       
     8 
       
     9 . ./testing_system
       
    10 
       
    11 #exec > results 2>&1
       
    12 
       
    13 #aptitude --allow-untrusted --quiet --without-recommends --assume-yes  install mercurial
       
    14 #hg --version
       
    15 
       
    16 aptitude --allow-untrusted --quiet --without-recommends --assume-yes  install \
       
    17     make mercurial xsltproc docbook-xsl openssh-server \
       
    18     python python-support adduser 
       
    19 
       
    20 #aptitude --allow-untrusted --quiet --without-recommends --assume-yes  install \
       
    21 #     debconf python python-support adduser mercurial openssh-server 
       
    22      
       
    23 
       
    24 perl -i -pe 's/^Port 22$/Port 2222/' /etc/ssh/sshd_config
       
    25 /etc/init.d/ssh start
       
    26 ssh-keyscan -p 2222 localhost > /etc/ssh/ssh_known_hosts
       
    27 
       
    28 #dpkg -i mercurial-server_1.0-1_all.deb
       
    29 cd mercurial-server
       
    30 make setup-adduser
       
    31 
       
    32 for user in test1 test2 ; do
       
    33     adduser --gecos $user --disabled-password $user
       
    34     su -l -c 'mkdir .ssh' $user
       
    35     su -l -c 'ssh-keygen -N "" -f .ssh/id_rsa -t rsa' $user
       
    36 done
       
    37 cp /home/test1/.ssh/id_rsa.pub /etc/mercurial-server/keys/root/test1
       
    38 su -l -c /usr/local/share/mercurial-server/refresh-auth hg
       
    39 su -l -c /action/test1 test1
       
    40 su -l -c /action/test2 test2
       
    41 
       
    42 /etc/init.d/ssh stop
       
    43 
       
    44 #touch results
       
    45