[Ultrapossum-cvs 984] ultrapossum/debian 1.14, 1.15, ultrapossum-failover.config

Zurück zum Archiv-Index

Masato Taruishi taru****@users*****
2004年 10月 23日 (土) 11:52:23 JST


===================================================================
RCS file: ultrapossum/debian/ultrapossum-failover.config,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- ultrapossum/debian/ultrapossum-failover.config	2004/10/22 17:18:57	1.14
+++ ultrapossum/debian/ultrapossum-failover.config	2004/10/23 02:52:23	1.15
@@ -45,7 +45,16 @@
 db_get ultrapossum-failover/do_failover
 
 if test "x$RET" = "xtrue"; then
-  slaves=`echo "$SLURPDSLAVES" "$SYNCBACKUPS" | sed 's/ /, /g'`
+  for h in $SLURPDSLAVES $SYNCBACKUPS
+  do
+    if test "x$h" != "x$MASTER"; then
+      if test "x$slaves" = "x"; then
+        slaves="$h"
+      else
+        slaves="$slaves, $h"
+      fi
+    fi
+  done
   db_subst ultrapossum-failover/backup slaves "$slaves"
   db_input high ultrapossum-failover/backup || true
   db_input medium ultrapossum-failover/virtual_takeover || true



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