[Ultrapossum-cvs 799] demo/uml 1.10, 1.11, ultrapossum 1.19, 1.20, update-uml

Zurück zum Archiv-Index

Masato Taruishi taru****@users*****
2004年 10月 12日 (火) 15:02:40 JST


===================================================================
RCS file: demo/uml/ultrapossum,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- demo/uml/ultrapossum	2004/10/07 09:58:24	1.10
+++ demo/uml/ultrapossum	2004/10/12 06:02:40	1.11
@@ -18,7 +18,12 @@
 chroot $TARGET mount -t proc proc /proc
 
 # Network configuration
-cat /tmp/host/$ultrapossum_hosts >> $TARGET/etc/hosts
+
+/bin/cp $TARGET/etc/hosts $TARGET/etc/hosts.$$
+cat /tmp/host/$ultrapossum_hosts > $TARGET/etc/hosts.$$
+cat $TARGET/etc/hosts >> $TARGET/etc/hosts.$$
+mv $TARGET/etc/hosts.$$ $TARGET/etc/hosts
+
 cat >> $TARGET/etc/network/interfaces <<EOF
 auto eth1
 iface eth1 inet static
===================================================================
RCS file: demo/uml/update-uml,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- demo/uml/update-uml	2004/10/10 16:08:50	1.19
+++ demo/uml/update-uml	2004/10/12 06:02:40	1.20
@@ -92,6 +92,13 @@
 adjustconfig() {
   ultrapossum_setconf_shell "$UMLDIR/etc/module.d/server.cf" MASTER "$HOST"
   ultrapossum_setconf_shell "$UMLDIR/etc/ultrapossum.cf" LDAPMASTER "$HOST"
+  if test -f "$UMLDIR/etc/module.d/failover.cf"; then
+    ultrapossum_setconf_shell "$UMLDIR/etc/module.d/failover.cf" NFSDIR "$NFSDIR"
+    ultrapossum_setconf_shell "$UMLDIR/etc/module.d/failover.cf" NFSDEVICE "$NFSDEVICE"
+    ultrapossum_setconf_shell "$UMLDIR/etc/default.cf" "logfile" "/var/log/ha-log"
+    ultrapossum_setconf_shell "$UMLDIR/etc/default.cf" "debugfile" "/var/log/ha-debug"
+    ultrapossum_setconf_shell "$UMLDIR/etc/default.cf" "ucast" "eth0 $MASTER"
+  fi
 }
 
 # getip <hostname>



Ultrapossum-cvs メーリングリストの案内
Zurück zum Archiv-Index