Changeset 7254 in genesis
- Timestamp:
- Nov 16, 2009, 10:14:39 PM (15 years ago)
- Location:
- nodes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
nodes/before-commit.sh
r7075 r7254 7 7 RETVAL=0 8 8 for FILE in ${DIRNAME}/*/wleiden.conf; do 9 perl -c $FILE 9 perl -c $FILE 10 10 if [ $? -ne 0 ]; then 11 11 RETVAL=1 … … 14 14 done 15 15 16 if [ $RETVAL -eq 0 ]; then 17 sh dubbelipcheck.sh 18 if [ $? -ne 0 ]; then 19 RETVAL=1 20 fi 21 fi 22 16 23 if [ "${RETVAL}" -eq 1 ]; then 17 24 echo "Please fix errors before commit!" -
nodes/dubbelipcheck.sh
r6891 r7254 9 9 allowed_dubbel_ip="172.31.255.1 172.31.255.2" 10 10 tmp_files="all_ips all_ips_no_double" 11 12 ERRNO=0 11 13 12 14 #zoek alle ip address in de files op … … 42 44 if [ "$dubbel_ips" ]; then 43 45 for dubbel_ip in $dubbel_ips ; do 46 ERRNO=1 44 47 echo "" 45 48 echo "Dubbel ip gevonden: $dubbel_ip" … … 79 82 80 83 main 81 exit 084 exit $ERRNO 82 85
Note:
See TracChangeset
for help on using the changeset viewer.