#!/bin/sh # # Harry Hoffman # # **************************************************************************** # Service definition section. # **************************************************************************** service="Update Path for /usr/local/(s)bin" servfil="set-usrlocal-path.vfy" LOGIN="${JASS_ROOT_DIR}/etc/default/login" #----------------------------------------------------------------------------- servhdr_txt=" Rationale for Verification Check: This check verifies the existence of /usr/local(s)bin within the PATH environment located in ${LOGIN}. Determination of Compliance: This check will indicate a failure if /usr/local/(s)bin is not set in ${LOGIN}. " # **************************************************************************** # Check processing section. # **************************************************************************** start_verify "${servfil}" "${service}" "${servhdr_txt}" if check_fileExists ${LOGIN} 1 ; then if check_fileContentsExist ${LOGIN} "^PATH=.*/usr/local/bin.*" 1 ; then logSuccess "/usr/local/bin set in ${LOGIN}." else logFailure "/usr/local/bin not set in ${LOGIN}." fi if check_fileContentsExist ${LOGIN} "^SUPATH=.*/usr/local/sbin.*" 1 ; then logSuccess "/usr/local/sbin set in ${LOGIN}." else logFailure "/usr/local/sbin not set in ${LOGIN}." fi else logFileNotFound "${LOGIN}" 1 fi finish_verify