[Ultrapossum-cvs 1001] ultrapossum/module/dnsbalance 1.7, 1.8, update-dnsbalance

アーカイブの一覧に戻る

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


===================================================================
RCS file: ultrapossum/module/dnsbalance/update-dnsbalance,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- ultrapossum/module/dnsbalance/update-dnsbalance	2004/10/07 10:04:41	1.7
+++ ultrapossum/module/dnsbalance/update-dnsbalance	2004/10/26 03:35:13	1.8
@@ -24,6 +24,9 @@
 tmp=`tempfile`
 trap "/bin/rm -f $tmp; eval `ultrapossum-config term`" 0
 
+id="DNSBALANCE"
+. $SHAREDIR/plugin
+
 sanity() {
   if test "x$LDAPSLAVE" != "x"; then
     for s in $SLAVES $LDAPSLAVE
@@ -93,25 +96,5 @@
   /bin/rmdir $DNSBALANCEDBDIR 2> /dev/null || true
 }
 
-case "x$1" in
-        xconfigure)
-                configure
-		ultrapossum-config set .status ULTRAPOSSUM_MODULE_DNSBALANCE=installed
-        ;;
-        xremove)
-                remove
-		ultrapossum-config set remove ULTRAPOSSUM_MODULE_DNSBALANCE=installed
-        ;;
-        xsanity)
-                sanity
-        ;;
-        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 メーリングリストの案内
アーカイブの一覧に戻る