Masato Taruishi
taru****@users*****
2004年 9月 29日 (水) 18:18:16 JST
=================================================================== RCS file: demo/uml/update-uml,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- demo/uml/update-uml 2004/09/29 08:52:13 1.16 +++ demo/uml/update-uml 2004/09/29 09:18:16 1.17 @@ -36,7 +36,8 @@ install -d "$UML_CONFDIR/$h" /bin/cp $MODULEDIR/uml/map.cf $UML_CONFDIR/$h/map.cf fi - eval "`$MODULEDIR/uml/map $h`" + $MODULEDIR/uml/map $h > $UMLDIR/$h/map + source_shell "$UMLDIR/$h/map" install -d $UMLDIR/$h $MODULEDIR/uml/rootstrap.sh $h > $UMLDIR/$h/rootstrap.conf if test "x$local_net" != "x"; then @@ -60,7 +61,10 @@ for h in $MASTER $SLAVES do if ! include $h "$UML_HOSTS"; then - echo "`getip $h`" $h >> $UMLDIR/hosts + ip=`getip $h` + if test "x$ip" != "x"; then + echo "$ip $h" >> $UMLDIR/hosts + fi fi done if test "x$MASTER" = "x$HOST"; then