action/go
changeset 266 7cc208cbf2be
parent 265 6629144cf111
child 267 4f24892b33fe
equal deleted inserted replaced
265:6629144cf111 266:7cc208cbf2be
     8 
     8 
     9 . ./testing_system
     9 . ./testing_system
    10 
    10 
    11 #exec > results 2>&1
    11 #exec > results 2>&1
    12 
    12 
    13 echo "It worked"
    13 #aptitude --allow-untrusted --quiet --without-recommends --assume-yes  install mercurial
       
    14 #hg --version
    14 
    15 
    15 aptitude --allow-untrusted --quiet --without-recommends --assume-yes  install mercurial
    16 aptitude --allow-untrusted --quiet --without-recommends --assume-yes  install \
    16 hg --version
    17     make mercurial xsltproc docbook-xsl openssh-server
    17 
    18 
    18 touch results
    19 perl -i -pe 's/^Port 22$/Port 2222/' /etc/ssh/sshd_config
       
    20 /etc/init.d/ssh start
       
    21 ssh-keyscan -p 2222 localhost > /etc/ssh/ssh_known_hosts
    19 
    22 
       
    23 cd mercurial-server
       
    24 make setup-adduser
       
    25 
       
    26 for user in test1 test2 ; do
       
    27     adduser --gecos $user --disabled-password $user
       
    28     su -l -c 'mkdir .ssh' $user
       
    29     su -l -c 'ssh-keygen -N "" -f .ssh/id_rsa -t rsa' $user
       
    30 done
       
    31 cp /home/test1/.ssh/id_rsa.pub /etc/mercurial-server/keys/root/test1
       
    32 su -l -c /usr/local/share/mercurial-server/refresh-auth hg
       
    33 su -l -c /action/test1 test1
       
    34 su -l -c /action/test2 test2
       
    35 
       
    36 /etc/init.d/ssh stop
       
    37 
       
    38 #touch results
       
    39