Changeset 250

Show
Ignore:
Timestamp:
12/16/06 15:00:50 (2 years ago)
Author:
sacha
Message:

added a -p option to provide the name of the test party to install. if no -p is given all (both Coronation and Gnaraloo) test systems will be
installed. this is useful to start one party on a system only. this allows to start one party and the other in chroot.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/message-handling-refactor-branch/bin/make-install-all.sh

    r52 r250  
    1010fi 
    1111 
    12 sh make-install-test-system.sh 
     12sh make-install-test-system.sh $1 $2 
    1313 
    1414if [ $? -eq 0 ]; then 
  • branches/message-handling-refactor-branch/bin/make-install-test-system.sh

    r105 r250  
    4343fi 
    4444 
    45  
    4645echo "Copying test application directory" 
    4746if [ -d $CONFIG_DIR/$SYSTEMS_DIR ]; then 
     
    5453chown -R $SERVER_USER:$SERVER_GROUP $CONFIG_DIR/$SYSTEMS_DIR 
    5554 
    56 cp -Rp $SRC_DIR/test/test-systems/* $CONFIG_DIR/$SYSTEMS_DIR 
     55if [[ $1 = '-p' ]]; then 
     56    echo the party $2 is selected to be installed. 
     57    cp -Rp $SRC_DIR/test/test-systems/$2 $CONFIG_DIR/$SYSTEMS_DIR 
     58else 
     59    echo no party selected. installing all parties. 
     60    cp -Rp $SRC_DIR/test/test-systems/* $CONFIG_DIR/$SYSTEMS_DIR 
     61fi 
     62 
    5763if [ $? -eq 0 ]; then 
    5864    echo "Copy test application directory done." 
  • branches/message-handling-refactor-branch/bin/make-install.sh

    r211 r250  
    2525    echo "$SERVER_USER user does not exists. Creating one." 
    2626    adduser --gecos "HavanaWave HefeWeizen gateway" --disabled-password $SERVER_USER 
     27    if [ $? -eq 0 ]; then 
     28        echo "Successfully create HefeWeizen user." 
     29    else 
     30        echo "Error $? when creating HefeWeizen user. Exitting." 
     31        exit -1 
     32    fi 
    2733fi 
    2834 
  • branches/message-handling-refactor-branch/bin/make-reinstall.sh

    r146 r250  
    11sh make-uninstall-all.sh 
     2 
    23if [ $? -eq 0 ]; then 
    34    echo "Removed all installed systems." 
     
    910 
    1011 
    11 sh make-install-all.sh 
     12sh make-install-all.sh $1 $2 
    1213if [ $? -eq 0 ]; then 
    1314    echo "Successfully installed all systems." 
  • branches/message-handling-refactor-branch/bin/make-uninstall.sh

    r118 r250  
    121121fi 
    122122 
     123grep $SERVER_GROUP /etc/group > /dev/null 
     124 
     125if [ $? -eq 0 ]; then 
     126    echo "Removing $SERVER_GROUP group" 
     127    delgroup $SERVER_GROUP 
     128    if [ $? -eq 0 ]; then 
     129        echo "done." 
     130    else 
     131        echo "Error removing $SERVER_GROUP group " 
     132        echo "Exitting." 
     133        exit -1 
     134    fi 
     135else 
     136    echo "group $SERVER_GROUP does not exist so nothing to do." 
     137fi 
     138 
     139 
    123140# deleting start stop scripts 
    124141echo "Removing start stop scripts"