Changeset 1566


Ignore:
Timestamp:
May 23, 2012, 3:03:12 AM (7 years ago)
Author:
bruno
Message:

Adding pbcl for afio

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/t/pbtest

    r1565 r1566  
    1818
    1919grep -q pbtest /etc/passwd
    20 if [ $? -ne 0 ]; then
     20if [ $? -eq 0 ]; then
    2121    rm -rf ~pbtest/* ~pbtest/.??*
     22    sudo groupdel pbtest
     23    sudo userdel pbtest
    2224fi
    23 sudo groupdel pbtest
    24 sudo userdel pbtest
    2525sudo useradd pbtest
    26 grep -q pbtest /etc/sudoers
     26sudo grep -q pbtest /etc/sudoers
    2727if [ $? -ne 0 ]; then
    2828    sudo cat >> /etc/sudoers << EOF
     
    5656sudo su - pbtest -c "pbdistrocheck"
    5757sudo su - pbtest -c "pb clean"
    58 sudo cat > ~pbtest/.pbrc << EOF
     58sudo cat > /tmp/.pbrc << EOF
    5959# Projects
    6060pbconfurl afio = svn://localhost/pb/afio/pbconf
     
    7878vmmonport default = 4000
    7979EOF
    80 
    81 sudo cat > ~pbtest/ve/.pbrc << EOF
     80sudo mv /tmp/.pbrc ~pbtest/.pbrc
     81
     82sudo cat > /tmp/.pbrc << EOF
    8283vetype default = chroot
    8384verpmtype default = rpmbootstrap
     
    8889velogin default = pbtest
    8990EOF
    90 echo "velist default = `echo $TESTVEDIST | sed 's/ */,/g'`" >> ~pbtest/ve/.pbrc
    91 
    92 sudo chown pbtest:pbtest ~pbtest/.pbrc
     91sudo echo "velist default = `echo $TESTVEDIST | sed 's/ */,/g'`" >> /tmp/.pbrc
     92sudo mv /tmp/.pbrc ~pbtest/ve/.pbrc
     93sudo chown pbtest:pbtest ~pbtest/.pbrc ~pbtest/ve/.pbrc
     94
    9395sudo su - pbtest -c "ssh-keygen -f .ssh/id_rsa -t rsa -b 768 -v -N ''"
    94 sudo su - pbtest -c "cp .ssh/id_rsa.pub .ssh/authorized_keys ; chmod 600 .ssh/authorized_keys"
     96sudo su - pbtest -c "cp .ssh/id_rsa.pub .ssh/authorized_keys ; chmod 600 .ssh/authorized_keys ; chmod 600 .ssh/id_rsa.pub"
    9597sudo su - pbtest -c "ssh -i .ssh/id_rsa.pub localhost touch ftp/README"
    9698sudo su - pbtest -c "svn import pb svn://localhost/pb -m 'Initial creation of pb repo'"
Note: See TracChangeset for help on using the changeset viewer.