#!/bin/sh # # Ripped off from the install-recommended-patches.fin script # # Harry Hoffman logMessage "Installing additional Solaris patches." errorCondition=0 PATCH_OS_VERSION="" # Determine the current OS version in order to define which cluster to apply. case ${JASS_UNAME} in 5.9) PATCH_OS_VERSION="5.9" ;; 5.8) PATCH_OS_VERSION="5.8" ;; 5.7) PATCH_OS_VERSION="5.7" ;; 5.6) PATCH_OS_VERSION="2.6" ;; 5.5.1) PATCH_OS_VERSION="2.5.1" ;; *) errorCondition=1 ;; esac if [ ${errorCondition} = 0 ]; then PATCH_DIR="${JASS_ROOT_DIR}${JASS_PATCH_DIR}" PATCH_SERV_DIR="${PATCH_OS_VERSION}" if [ ! -d ${PATCH_DIR} ]; then logNotice "The patch directory, ${PATCH_DIR}, does not exist." else if [ ! -d ${PATCH_DIR}/${PATCH_SERV_DIR} ]; then logNotice "The patch directory, ${PATCH_SERV_DIR}, does not exist." else logMessage "Installing the patches from the directory, ${PATCH_DIR}/${PATCH_SERV_DIR}." add_patch ${JASS_REC_PATH_OPTIONS} \ -M ${JASS_PATCH_DIR}/${PATCH_SERV_DIR} patch_order fi fi fi