[Ultrapossum-cvs 303] demo/uml 1.8,1.9,update-uml

アーカイブの一覧に戻る

Masato Taruishi taru****@sourc*****
2004年 7月 3日 (土) 20:02:17 JST


===================================================================
RCS file: demo/uml/update-uml,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- demo/uml/update-uml	2004/07/03 04:06:11	1.8
+++ demo/uml/update-uml	2004/07/03 11:02:17	1.9
@@ -35,6 +35,12 @@
     $MODULEDIR/uml/rootstrap.sh $h > $UMLDIR/$h/rootstrap.conf
     echo "$uml $h" >> $UMLDIR/hosts
   done
+
+  add_startmark "##" "$id" > $tmp
+  cat $UMLDIR/hosts >> $tmp
+  add_endmark "##" "$id" >> $tmp
+  add_end_vaconf "/etc/hosts" "$tmp" "$id"
+
   for h in $MASTER $SLAVES
   do 
     if ! include $h "$UML_HOSTS"; then
@@ -72,6 +78,7 @@
 remove() {
   /bin/rm -f $UMLDIR/hosts $UMLDIR/ssh_known_hosts
   /bin/rm -rf $UMLDIR/etc
+  strip_vaconf /etc/hosts "$id"
   for h in $UML_HOSTS
   do
     /bin/rm -f $UMLDIR/$h/rootstrap.conf



Ultrapossum-cvs メーリングリストの案内
アーカイブの一覧に戻る