[Ultrapossum-cvs 1003] ultrapossum/module/failover 1.26, 1.27, update-failover

Back to archive index

Masato Taruishi taru****@users*****
2004年 10月 26日 (火) 12:35:13 JST


===================================================================
RCS file: ultrapossum/module/failover/update-failover,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- ultrapossum/module/failover/update-failover	2004/10/22 17:18:57	1.26
+++ ultrapossum/module/failover/update-failover	2004/10/26 03:35:13	1.27
@@ -30,6 +30,7 @@
 trap "rm -f $tmp; eval `ultrapossum-config term`" 0
 
 id="FAILOVER"
+. $SHAREDIR/plugin
 
 configure_mon() {
   if test "x$TYPE" = "xmaster" && test "x$BACKUP" != "x"; then
@@ -250,25 +251,5 @@
   if test -f $HARESOURCES; then strip_vaconf $HARESOURCES $id; fi
 }
 
-case "x$1" in
-	xconfigure)
-		configure
-  		ultrapossum-config set .status ULTRAPOSSUM_MODULE_FAILOVER=installed
-	;;
-	xremove)
-		remove
-		ultrapossum-config remove .status ULTRAPOSSUM_MODULE_FAILOVER
-	;;
-	xsanity)
-		sanity_check
-	;;
-	x)
-		echo "Usage: $0 <configure|remove|sanity>" 1>&2
-		exit 1
-	;;
-	x*)
-		echo "Unknown argument: $1" 1>&2
-		exit 1
-	;;
-esac
+update "$1"
 



Ultrapossum-cvs メーリングリストの案内
Back to archive index