diff --git a/rebuild-hosts.allow.sh b/rebuild-hosts.allow.sh index 7169f87..e5b0340 100755 --- a/rebuild-hosts.allow.sh +++ b/rebuild-hosts.allow.sh @@ -6,7 +6,7 @@ # Copyright (c) 2006 TundraWare Inc., Des Plaines, IL USA # All Rights Reserved -RCSID='$Id: rebuild-hosts.allow.sh,v 1.103 2006/05/03 06:24:24 tundra Exp $' +RCSID='$Id: rebuild-hosts.allow.sh,v 1.104 2006/05/03 06:39:56 tundra Exp $' BASE="/usr/local/etc/tperimeter" EPILOGUE=${BASE}/epilogue @@ -22,23 +22,23 @@ BuildEntries() { - if [ -d $1 ] # Only attempt this if the target directory exists + if [ -d $1 ] # Only attempt this if the allow/deny directory exists then cd $1 for x in * do - if [ $x != '*' ] + if [ $x != '*' ] # Only if there are services specified therein then cd $x list="" for y in * do - if [ $y != '*' ] + if [ $y != '*' ] # Only create list if actual addresses are present then list=${list}${y}" " fi done - if [ "$list" ] + if [ "$list" ] # Output complete rule for all non-empty address lists then echo "$x: $list :$2" fi @@ -47,8 +47,10 @@ done fi } + # End Of 'BuildEntries()' + ##### # Rebuild /etc/hosts-allow #####