Changeset 7254 in genesis for nodes


Ignore:
Timestamp:
Nov 16, 2009, 10:14:39 PM (15 years ago)
Author:
rick
Message:

before-commit.sh now checks for double ips as well

Location:
nodes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • nodes/before-commit.sh

    r7075 r7254  
    77RETVAL=0
    88for FILE in ${DIRNAME}/*/wleiden.conf; do
    9   perl -c $FILE 
     9  perl -c $FILE
    1010  if [ $? -ne 0 ]; then
    1111    RETVAL=1
     
    1414done
    1515
     16if [ $RETVAL -eq 0 ]; then
     17    sh dubbelipcheck.sh
     18    if [ $? -ne 0 ]; then
     19        RETVAL=1
     20    fi
     21fi
     22
    1623if [ "${RETVAL}" -eq 1 ]; then
    1724  echo "Please fix errors before commit!"
  • nodes/dubbelipcheck.sh

    r6891 r7254  
    99allowed_dubbel_ip="172.31.255.1 172.31.255.2"
    1010tmp_files="all_ips all_ips_no_double"
     11
     12ERRNO=0
    1113
    1214#zoek alle ip address in de files op
     
    4244        if [ "$dubbel_ips" ]; then
    4345                for dubbel_ip in $dubbel_ips ; do
     46                        ERRNO=1
    4447                        echo ""
    4548                        echo "Dubbel ip gevonden: $dubbel_ip"
     
    7982
    8083main
    81 exit 0
     84exit $ERRNO
    8285
Note: See TracChangeset for help on using the changeset viewer.