#!/bin/sh # # Harry Hoffman # # **************************************************************************** # Service definition section. # **************************************************************************** service="Additional Solaris Patches" servfil="install-miscellaneous-patches.vfy" #----------------------------------------------------------------------------- servhdr_txt=" Rationale for Verification Check: This script will check to see if the miscellaneous patches located in ${JASS_HOME_DIR}/Patches/${JASS_UNAME} has been installed on the system. The patch cluster's patch order file must exist in the specified directory in order to be used by this script. Determination of Compliance: This script will indicate a failure if any of the patches listed in the miscellaneous patch order file are not installed on the system. Note that this script will indicate succes if the version of the patch installed is equal to or greater than the version listed in the patch order file. " # **************************************************************************** # Check processing section. # **************************************************************************** start_verify "${servfil}" "${service}" "${servhdr_txt}" PATCH_DIR="${JASS_ROOT_DIR}${JASS_PATCH_DIR}" PATCH_SERV_DIR="${JASS_UNAME}" if check_fileExists ${PATCH_DIR}/${PATCH_SERV_DIR}/patch_order 0 ; then for patch in `cat ${PATCH_DIR}/${PATCH_SERV_DIR}/patch_order`; do check_patchExists ${patch} 1 LOG done else logFileNotFound "${PATCH_DIR}/${PATCH_SERV_DIR}/patch_order" fi finish_verify