Changeset 624

Show
Ignore:
Timestamp:
05/03/07 15:13:41 (2 years ago)
Author:
sacha
Message:

the installation script will automatically update the /etc/hosts file in order to have the test system working out of the box.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/bin/make-install-test-system.sh

    r507 r624  
    9999fi 
    100100 
     101############################### 
     102# In order to have the test systems work we need to update the /etc/hosts file so 
     103# that the domain names listed in the CPA's can be resolved. 
     104# Updating the /etc/hosts file. 
     105############################### 
     106 
     107HOST_1=coronation-ebXML-b2b-gateway 
     108HOST_2=gnaraloo-ebXML-b2b-gateway 
     109 
     110grep "127.0.0.1.*$HOST_1" /etc/hosts >/dev/null 
     111if [ $? -eq 0 ]; then 
     112    echo "$HOST_1 already listed in the /etc/hosts file present. Nothing to do." 
     113else 
     114    echo "$HOST_1 not in the /etc/hosts file. Adding it." 
     115    echo "127.0.0.1 $HOST_1" >> /etc/hosts 
     116fi 
     117 
     118grep "127.0.0.1.*$HOST_2" /etc/hosts >/dev/null 
     119if [ $? -eq 0 ]; then 
     120    echo "$HOST_2 already listed in the /etc/hosts file present. Nothing to do." 
     121else 
     122    echo "$HOST_2 not in the /etc/hosts file. Adding it." 
     123    echo "127.0.0.1 $HOST_2" >> /etc/hosts 
     124fi 
     125 
     126 
    101127exit 0