Fix prev commit

This commit is contained in:
Howard Chu 2008-11-16 09:07:19 +00:00
parent 947612e72f
commit 8726452d8f
3 changed files with 36 additions and 39 deletions

View File

@ -34,20 +34,19 @@ $SLAPPASSWD -g -n >$CONFIGPWF
if test x"$SYNCMODE" = x ; then
SYNCMODE=rp
else
case "$SYNCMODE" in
ro)
SYNCTYPE="type=refreshOnly interval=00:00:00:10"
;;
rp)
SYNCTYPE="type=refreshAndPersist"
;;
*)
echo "unknown sync mode $SYNCMODE"
exit 1;
;;
esac
fi
case "$SYNCMODE" in
ro)
SYNCTYPE="type=refreshOnly interval=00:00:00:10"
;;
rp)
SYNCTYPE="type=refreshAndPersist"
;;
*)
echo "unknown sync mode $SYNCMODE"
exit 1;
;;
esac
#
# Test replication of dynamic config:

View File

@ -37,20 +37,19 @@ $SLAPPASSWD -g -n >$CONFIGPWF
if test x"$SYNCMODE" = x ; then
SYNCMODE=rp
else
case "$SYNCMODE" in
ro)
SYNCTYPE="type=refreshOnly interval=00:00:00:10"
;;
rp)
SYNCTYPE="type=refreshAndPersist"
;;
*)
echo "unknown sync mode $SYNCMODE"
exit 1;
;;
esac
fi
case "$SYNCMODE" in
ro)
SYNCTYPE="type=refreshOnly interval=00:00:00:10"
;;
rp)
SYNCTYPE="type=refreshAndPersist"
;;
*)
echo "unknown sync mode $SYNCMODE"
exit 1;
;;
esac
#
# Test replication of dynamic config:

View File

@ -47,20 +47,19 @@ $SLAPPASSWD -g -n >$CONFIGPWF
if test x"$SYNCMODE" = x ; then
SYNCMODE=rp
else
case "$SYNCMODE" in
ro)
SYNCTYPE="type=refreshOnly interval=00:00:00:10"
;;
rp)
SYNCTYPE="type=refreshAndPersist"
;;
*)
echo "unknown sync mode $SYNCMODE"
exit 1;
;;
esac
fi
case "$SYNCMODE" in
ro)
SYNCTYPE="type=refreshOnly interval=00:00:00:10"
;;
rp)
SYNCTYPE="type=refreshAndPersist"
;;
*)
echo "unknown sync mode $SYNCMODE"
exit 1;
;;
esac
echo "Initializing producer configurations..."
$SLAPADD -F $CFPROD -n 0 <<EOF