Masato Taruishi
taru****@users*****
2004年 9月 28日 (火) 02:08:17 JST
=================================================================== RCS file: ultrapossum/module/server/update-server,v retrieving revision 1.51 retrieving revision 1.52 diff -u -r1.51 -r1.52 --- ultrapossum/module/server/update-server 2004/09/27 16:27:45 1.51 +++ ultrapossum/module/server/update-server 2004/09/27 17:08:17 1.52 @@ -79,19 +79,23 @@ done ULTRAPOSSUMMARK=$oldmark - cp /dev/null $ULTRAPOSSUMLDIF - chmod 640 $ULTRAPOSSUMLDIF - $MODULEDIR/server/ldif.sh > $ULTRAPOSSUMLDIF + if test "x$HOST" = "x$MASTER"; then + cp /dev/null $ULTRAPOSSUMLDIF + chmod 640 $ULTRAPOSSUMLDIF + $MODULEDIR/server/ldif.sh > $ULTRAPOSSUMLDIF - cp /dev/null $APPSLDIF - chmod 640 $APPSLDIF - $MODULEDIR/server/apps ldif > $APPSLDIF + cp /dev/null $APPSLDIF + chmod 640 $APPSLDIF + $MODULEDIR/server/apps ldif > $APPSLDIF + else + /bin/rm -f $ULTRAPOSSUMLDIF $APPSLDIF + fi ULTRAPOSSUM_INDEX=`egrep '^index' $ULTRAPOSSUM_MASTER_SLAPD_CONF 2> /dev/null | tr '\n' ' '` progress "Configuring OpenLDAP for $TYPE... done" - if test -f "$ULTRAPOSSUM_INIT_LDIF_IN"; then + if test "x$HOST" = "x$MASTER" && test -f "$ULTRAPOSSUM_INIT_LDIF_IN"; then progress "Configuring initial LDIF... " sed -e "s/#SUFFIX#/$SUFFIX/" < $ULTRAPOSSUM_INIT_LDIF_IN > $INITLDIF progress "Configuring initial LDIF... done"