#!/bin/sh
#
# Copyright (c) 2001 by Sun Microsystems, Inc.
# All rights reserved.
#
#ident	"@(#)setup_ds_packages	1.1	01/03/07 SMI"
#
# Install the data service packages from the data service cdrom

LOGDIR=/var/cluster/spm
DS_CDROM_FILE=${LOGDIR}/ds_cdrom_path

# Get the cdrom paths
DS_CDROM_PATH=`cat ${DS_CDROM_FILE}`

# Install the packages
if [ -f ${LOGDIR}/logical_host ]
then
    /usr/cluster/bin/scinstall -i -d ${DS_CDROM_PATH} -s nfs
fi

# Install the packages
if [ -f ${LOGDIR}/shared_address ]
then
    /usr/cluster/bin/scinstall -i -d ${DS_CDROM_PATH} -s apache
fi

# Remove the shared address file so this won't run again
rm -f ${LOGDIR}/setup_ds_packages_flag
