dev/chroot-test/action/go
branchdebian
changeset 284 85607df3fd19
parent 283 01eca64f77ab
child 299 f41666a08b87
equal deleted inserted replaced
281:7d59a0f92c78 284:85607df3fd19
     8 
     8 
     9 . ./testing_system
     9 . ./testing_system
    10 
    10 
    11 #exec > results 2>&1
    11 #exec > results 2>&1
    12 
    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 \
    13 aptitude --allow-untrusted --quiet --without-recommends --assume-yes  install \
    17     make mercurial xsltproc docbook-xsl openssh-server \
    14     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 
    15 
    24 perl -i -pe 's/^Port 22$/Port 2222/' /etc/ssh/sshd_config
    16 perl -i -pe 's/^Port 22$/Port 2222/' /etc/ssh/sshd_config
    25 /etc/init.d/ssh start
    17 /etc/init.d/ssh start
    26 ssh-keyscan -p 2222 localhost > /etc/ssh/ssh_known_hosts
    18 ssh-keyscan -p 2222 localhost > /etc/ssh/ssh_known_hosts
    27 
    19 
    28 #dpkg -i mercurial-server_1.0-1_all.deb
    20 . ./install-installables
    29 cd mercurial-server
       
    30 make setup-adduser
       
    31 
    21 
    32 for user in test1 test2 ; do
    22 for user in test1 test2 ; do
    33     adduser --gecos $user --disabled-password $user
    23     adduser --gecos $user --disabled-password $user
    34     su -l -c 'mkdir .ssh' $user
    24     su -l -c 'mkdir .ssh' $user
    35     su -l -c 'ssh-keygen -N "" -f .ssh/id_rsa -t rsa' $user
    25     su -l -c 'ssh-keygen -N "" -f .ssh/id_rsa -t rsa' $user
    36 done
    26 done
    37 cp /home/test1/.ssh/id_rsa.pub /etc/mercurial-server/keys/root/test1
    27 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
    28 
       
    29 su -l -c /action/refresh-auth hg
    39 su -l -c /action/test1 test1
    30 su -l -c /action/test1 test1
    40 su -l -c /action/test2 test2
    31 su -l -c /action/test2 test2
    41 
    32 
    42 /etc/init.d/ssh stop
    33 /etc/init.d/ssh stop
    43 
    34