#!/bin/sh
#
# Copyright (c) 2001 by Sun Microsystems, Inc.
# All rights reserved.
#
#ident	"@(#)spminstall	1.5	01/03/07 SMI"
#
# This script performs the post-cluster installation tasks for a
# cluster which has been installed by the SunPlex Manager.

LOGDIR=/var/cluster/spm
BINDIR=/opt/SUNWscvw/cgi-bin/installation

if [ -f ${LOGDIR}/setup_devices_flag ]
then
    ${BINDIR}/setup_devices
fi

if [ -f ${LOGDIR}/setup_quorum_flag ]
then
    ${BINDIR}/setup_quorum
fi

if [ -f ${LOGDIR}/setup_sds_flag ]
then
    ${BINDIR}/setup_sds
fi

if [ -f ${LOGDIR}/setup_ds_packages_flag ]
then
    ${BINDIR}/setup_ds_packages
fi

if [ -f ${LOGDIR}/setup_nfs_flag ]
then
    ${BINDIR}/setup_nfs
fi

if [ -f ${LOGDIR}/setup_apache_flag ]
then
    ${BINDIR}/setup_apache
fi

# Touch the file to show we're done
touch ${LOGDIR}/finish_install
