Masato Taruishi
taru****@users*****
2004年 10月 26日 (火) 12:35:13 JST
=================================================================== RCS file: ultrapossum/module/vaj-robust/update-vaj-robust,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- ultrapossum/module/vaj-robust/update-vaj-robust 2004/09/27 09:07:57 1.5 +++ ultrapossum/module/vaj-robust/update-vaj-robust 2004/10/26 03:35:13 1.6 @@ -7,8 +7,7 @@ # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# +# (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the @@ -24,8 +23,10 @@ tmp=`tempfile` trap "/bin/rm -f $tmp; eval `ultrapossum-config term`" 0 +id="VAJ-ROBUST" +. $SHAREDIR/plugin + configure() { - id="VAJ-ROBUST" if test "x$RPLOCK" != "x" && test "x$BACKUP$SLAVES" != "x"; then add_startmark "##" $id > $tmp echo "replockfile $RPLOCK" >> $tmp @@ -40,29 +41,5 @@ if test -f $SLAPDCONF; then strip_vaconf $SLAPDCONF $id; fi } -sanity() { - : -} - -case "x$1" in - xconfigure) - configure - ultrapossum-config set .status ULTRAPOSSUM_MODULE_VAJ_ROBUST=installed - ;; - xremove) - remove - ultrapossum-config remove .status ULTRAPOSSUM_MODULE_VAJ_ROBUST - ;; - 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"