ENH: relax compiler check in foamInstallationTest (can use system gcc)

This commit is contained in:
Mark Olesen
2010-03-25 08:38:04 +01:00
parent d1313bfda7
commit 8fe5f7f9ee
2 changed files with 207 additions and 296 deletions

View File

@ -34,72 +34,73 @@
# Base settings # Base settings
FOAM_VERSION=1.6 FOAM_VERSION=1.6
SUPPLIED_VERSION_GCC=4.3.3 SUPPLIED_VERSION_GCC=4.4.3
MIN_VERSION_GCC=4.3.1 MIN_VERSION_GCC=4.3.3
# General # General
WIDTH=20 WIDTH=20
# Global variables # Global variables
FATALERROR=0 fatalError=0
CRITICALERROR=0 criticalError=0
SSHRSHOK=0
# System variables # System variables
HOST_NAME=`uname -n` HOST=`uname -n`
OS=`uname -s` OSTYPE=`uname -s`
USER_NAME=$LOGNAME USER_NAME=$LOGNAME
if [ ! -n $USER_NAME ]; then : ${USER_NAME:=$USER}
USER_NAME=$USER
fi # which OpenFOAM application to test for the Version
foamTestApp=icoFoam
#============================================================================== #==============================================================================
# HELPER FUNCTIONS # HELPER FUNCTIONS
#============================================================================== #==============================================================================
hline () { hline()
{
echo "-------------------------------------------------------------------------------" echo "-------------------------------------------------------------------------------"
} }
expenv () { heading()
eval "echo $1" {
} echo
echo
heading () {
echo ""
echo ""
echo "$1" echo "$1"
} }
lenBase () { lenBase()
{
echo $1 | tr -d " " | wc -m | tr -d " " echo $1 | tr -d " " | wc -m | tr -d " "
} }
length () { length()
{
NOCHAR=`lenBase $1` NOCHAR=`lenBase $1`
NOCHAR=`expr $NOCHAR - 1` NOCHAR=`expr $NOCHAR - 1`
if [ $NOCHAR -eq -1 ]; then [ $NOCHAR -ge 0 ] || NOCHAR=0
NOCHAR=0
fi
echo $NOCHAR echo $NOCHAR
} }
stringLength () { stringLength()
{
echo $1 | wc -m | tr -d " " echo $1 | wc -m | tr -d " "
} }
fixlen () { fixlen()
{
WORD=$1 WORD=$1
ONELEN=`stringLength $1` ONELEN=`stringLength $1`
LDIFF=`expr $ONELEN - $2` LDIFF=`expr $ONELEN - $2`
if [ $LDIFF -le 1 ]; then if [ $LDIFF -le 1 ]
while [ $LDIFF -lt 0 ] ; do then
while [ $LDIFF -lt 0 ]
do
WORD="$WORD " WORD="$WORD "
LDIFF=`expr $LDIFF + 1` LDIFF=`expr $LDIFF + 1`
done done
@ -112,33 +113,34 @@ fixlen () {
} }
reportEnv () { reportEnv()
{
EXP_ENV=`eval "echo $1"` EXP_ENV=`eval "echo $1"`
EXP_PATH=`eval "echo $2"` EXP_PATH=`eval "echo $2"`
CRIT="$3" CRIT="$3"
EXISTS=" no " EXISTS=" no "
ON_PATH="" ON_PATH=""
if [ `length $EXP_ENV` -gt 0 ] ; then if [ `length $EXP_ENV` -gt 0 ]
case $OS in then
case "$OSTYPE" in
SunOS) SunOS)
if /usr/bin/test -e $EXP_ENV ; then if /usr/bin/test -e $EXP_ENV
then
EXISTS=" yes " EXISTS=" yes "
if [ "$2" != noPath ]; then if [ "$2" != noPath ]
then
ON_PATH=" no " ON_PATH=" no "
OLD_IFS=$IFS oldIFS=$IFS
IFS=':' IFS=':'
for e in $EXP_PATH for e in $EXP_PATH
do do
if \ case "$e" in
[ \ "$EXP_ENV" | "$EXP_ENV/bin" | "$EXP_ENV/lib")
"$e" = "$EXP_ENV" \
-o "$e" = "${EXP_ENV}/bin" \
-o "${EXP_ENV}/lib" = "$e" \
] ; then
ON_PATH="yes " ON_PATH="yes "
fi ;;
esac
done done
IFS=$OLD_IFS IFS=$oldIFS
else else
CRIT=" $3" CRIT=" $3"
fi fi
@ -148,24 +150,23 @@ reportEnv () {
echo "`fixlen "$1" 21` `fixlen "$EXP_ENV" 40` $EXISTS $ON_PATH $CRIT" echo "`fixlen "$1" 21` `fixlen "$EXP_ENV" 40` $EXISTS $ON_PATH $CRIT"
;; ;;
*) *)
if [ -e "$EXP_ENV" ] ; then if [ -e "$EXP_ENV" ]
then
EXISTS=" yes " EXISTS=" yes "
if [ "$2" != noPath ]; then if [ "$2" != noPath ]
then
ON_PATH=" no " ON_PATH=" no "
OLD_IFS=$IFS oldIFS=$IFS
IFS=':' IFS=':'
for e in $EXP_PATH for e in $EXP_PATH
do do
if \ case "$e" in
[ \ "$EXP_ENV" | "$EXP_ENV/bin" | "$EXP_ENV/lib")
"$e" = "$EXP_ENV" \
-o "$e" = "${EXP_ENV}/bin" \
-o "${EXP_ENV}/lib" = "$e" \
] ; then
ON_PATH="yes " ON_PATH="yes "
fi ;;
esac
done done
IFS=$OLD_IFS IFS=$oldIFS
else else
CRIT=" $3" CRIT=" $3"
fi fi
@ -180,11 +181,13 @@ reportEnv () {
fi fi
ERROR="false" ERROR="false"
if [ "$EXISTS" = no ] || [ "$ON_PATH" = no ]; then if [ "$EXISTS" = no ] || [ "$ON_PATH" = no ]
then
ERROR="true" ERROR="true"
fi fi
if [ "$3" = yes ] && [ "$ERROR" = true ]; then if [ "$3" = yes ] && [ "$ERROR" = true ]
CRITICALERROR=`expr $CRITICALERROR + 1` then
criticalError=`expr $criticalError + 1`
echo "WARNING: CRITICAL ERROR" echo "WARNING: CRITICAL ERROR"
echo echo
fi fi
@ -192,197 +195,111 @@ reportEnv () {
} }
findExec() { findExec()
OLD_IFS=$IFS {
oldIFS=$IFS
IFS=':' IFS=':'
for d in $1 for d in $1
do do
case $OS in case "$OSTYPE" in
SunOS) SunOS)
if /usr/bin/test ! -d "$d/$2" -a -x "$d/$2" ; then if /usr/bin/test ! -d "$d/$2" -a -x "$d/$2"
IFS=$OLD_IFS then
IFS=$oldIFS
echo "$d/$2" echo "$d/$2"
return 0 return 0
fi fi
;; ;;
*) *)
if [ ! -d "$d/$2" -a -x "$d/$2" ]; then if [ ! -d "$d/$2" -a -x "$d/$2" ]
IFS=$OLD_IFS then
IFS=$oldIFS
echo "$d/$2" echo "$d/$2"
return 0 return 0
fi fi
;; ;;
esac esac
done done
IFS=$OLD_IFS IFS=$oldIFS
return 1 return 1
} }
reportExecutable () { reportExecutable()
{
APP_PATH="" APP_PATH=""
APP_PATH=`findExec $PATH $1` APP_PATH=`findExec $PATH $1`
APP_SPEC="$2" APP_SPEC="$2"
if [ ! -n $APP_PATH ];then if [ ! -n $APP_PATH ]
then
echo "`fixlen "$1" 9`" "*** not installed ***" echo "`fixlen "$1" 9`" "*** not installed ***"
VERSION="" VERSION=""
case $1 in case "$1" in
icoFoam) gcc | $foamTestApp)
echo " CRITICAL ERROR" echo " CRITICAL ERROR"
CRITICALERROR=`expr $CRITICALERROR + 1` criticalError=`expr $criticalError + 1`
;; ;;
gcc)
echo " CRITICAL ERROR"
CRITICALERROR=`expr $CRITICALERROR + 1`
;;
tar) ;;
gtar) ;;
gzip) ;;
dx) ;;
esac esac
echo echo
return 1 return 1
fi fi
case $1 in case "$1" in
icoFoam) $foamTestApp)
VERSION=`$1 2>&1 \ VERSION=`$1 -case /dev/null 2>&1 \
| \grep ' Version:' \ | sed -ne 's/^.*Version: *\([^ ][^ ]*\).*/\1/p'`
| sed -e 's/.*Version:/Version:/' \ ;;
| cut -d" " -f3` gcc)
VERSION=`$1 -v 2>&1 \
| sed -ne 's/^gcc version \([0-9][0-9.]*\).*/\1/p' `
if [ "$VERSION" != "$SUPPLIED_VERSION_GCC" ]
then
echo "WARNING: gcc version does not match gcc supplied" \
"with this release of OpenFOAM"
echo " Supplied version: $SUPPLIED_VERSION_GCC"
echo " User version : $VERSION"
echo " Minimum required: $MIN_VERSION_GCC"
echo ""
fi
;;
gtar)
VERSION=`$APP_PATH --version | head -1`
;;
tar)
VERSION=`$APP_PATH --version | head -1 | cut -d" " -f4`
;;
gzip)
case "$OSTYPE" in
SunOS)
VERSION=`$1 --version 2>&1 | grep gzip | cut -d" " -f2`
;; ;;
gcc) *)
VERSION=`$1 -v 2>&1 \ VERSION=`$1 --version | head -1 | cut -d" " -f2`
| grep 'gcc version' \
| cut -d" " -f3`
if [ ! "$VERSION" = "$SUPPLIED_VERSION_GCC" ]; then
echo "WARNING: gcc version does not match gcc supplied" \
"with this release of OpenFOAM"
echo " Supplied version: $SUPPLIED_VERSION_GCC"
echo " User version : $VERSION"
echo " Minimum required: $MIN_VERSION_GCC"
echo ""
fi
;;
gtar)
VERSION=`$APP_PATH --version | head -1`
;;
tar)
VERSION=`$APP_PATH --version | head -1 | cut -d" " -f4`
;;
gzip)
case $OS in
SunOS)
VERSION=`$1 --version 2>&1 | grep gzip | cut -d" " -f2`
;;
*)
VERSION=`$1 --version | head -1 | cut -d" " -f2`
;;
esac
;; ;;
esac
;;
esac esac
if [ "$APP_PATH" = "$APP_SPEC" ] || [ ! "$2" ]; then if [ "$APP_PATH" = "$APP_SPEC" ] || [ ! "$2" ]
then
echo "`fixlen "$1" 9` `fixlen "$VERSION" 10` `fixlen "$APP_PATH" 58`" echo "`fixlen "$1" 9` `fixlen "$VERSION" 10` `fixlen "$APP_PATH" 58`"
else else
echo "`fixlen "$1" 9` `fixlen "$VERSION" 10`" echo "`fixlen "$1" 9` `fixlen "$VERSION" 10`"
echo "WARNING: Conflicting installations:" echo "WARNING: Conflicting installations:"
echo " OpenFOAM settings : $APP_SPEC" echo " OpenFOAM settings : $APP_SPEC"
echo " current path : $APP_PATH" echo " current path : $APP_PATH"
case $1 in case "$1" in
icoFoam) gcc | $foamTestApp)
echo " CRITICAL ERROR" echo " CRITICAL ERROR"
CRITICALERROR=`expr $CRITICALERROR + 1` criticalError=`expr $criticalError + 1`
;; ;;
gcc)
echo " CRITICAL ERROR"
CRITICALERROR=`expr $CRITICALERROR + 1`
;;
gtar) ;;
gzip) ;;
dx) ;;
esac esac
echo "" echo ""
fi fi
} }
pingTest () { checkOpenFOAMEnvironment()
RESULT="" {
case $OS in
SunOS)
PINGTEST=`/usr/sbin/ping $1 2>&1`
if [ "`echo $PINGTEST | grep alive`" != "" ] ; then
RESULT="Successful"
elif [ "`echo $PINGTEST | grep 'unknown host'`" != "" ] ; then
RESULT="No_entry_for_\"$1\"_in_/etc/hosts"
else
RESULT="Networking_cannot_reach_$1"
fi
;;
*)
PINGTEST=`/bin/ping -w 3 -c 1 $1 2>&1`
if [ "`echo $PINGTEST | grep '1 received'`" != "" ] ; then
RESULT="Successful"
elif [ "`echo $PINGTEST | grep 'unknown host'`" != "" ] ; then
RESULT="No_entry_for_\"$1\"_in_/etc/hosts"
else
RESULT="Networking_cannot_reach_$1"
fi
;;
esac
echo "`fixlen "Pinging_$1" 25` `fixlen "$RESULT" 45` `fixlen "$2" 5`"
if [ "$2" = yes ] && [ "$RESULT" != Successful ]; then
CRITICALERROR=`expr $CRITICALERROR + 1`
echo "WARNING: CRITICAL ERROR"
echo
fi
}
telnetPortTest () {
telnet -e A $1 $2 <<EOF
A
quit
EOF
}
checkTelnetPort () {
if [ -x "/usr/bin/telnet" ] || [ -x "/bin/telnet" ] ; then
RESULT=`telnetPortTest $1 $2 2>&1 | egrep "onnect.* [t|r]"`
if [ "`echo $RESULT | grep 'Connected to'`" ] ; then
RESULT='Successful'
elif [ "`echo $RESULT | grep 'Connection refused'`" ] ; then
RESULT='Unsuccessful_connection_refused*'
else
RESULT="Not_active*"
fi
else
RESULT='No_telnet_installed:_cannot_check*'
fi
}
checkRsh () {
checkTelnetPort $HOST_NAME 222
echo "`fixlen "Test_rsh:" 25` `fixlen "$RESULT" 45` "yes""
if [ "$RESULT" != Successful ]; then
SSHRSHOK=`expr $SSHRSHOK + 1`
fi
}
checkSsh () {
checkTelnetPort $HOST_NAME 22
echo "`fixlen "Test_ssh:" 25` `fixlen "$RESULT" 45` "yes""
if [ "$RESULT" != Successful ]; then
SSHRSHOK=`expr $SSHRSHOK + 1`
fi
}
checkOpenFOAMEnvironment() {
[ -d "$WM_PROJECT_INST_DIR" ] && [ -d "$WM_THIRD_PARTY_DIR" ] || { [ -d "$WM_PROJECT_INST_DIR" ] && [ -d "$WM_THIRD_PARTY_DIR" ] || {
echo "" echo ""
echo "FATAL ERROR: OpenFOAM environment not configured." echo "FATAL ERROR: OpenFOAM environment not configured."
@ -396,54 +313,50 @@ checkOpenFOAMEnvironment() {
} }
checkUserShell() { checkUserShell()
{
echo "`fixlen Shell: $WIDTH` ${SHELL##*/}"
case $SHELL in case $SHELL in
*/csh | */tcsh) */csh | */tcsh | */bash | */ksh)
# USER_CONFIG_TYPE="cshrc" ;;
echo "`fixlen "Shell:" $WIDTH` ${SHELL##*/}" *)
;; echo "FATAL ERROR: Cannot identify the shell you are running."
*/bash | */ksh) echo " OpenFOAM ${FOAM_VERSION} is compatible with "
# USER_CONFIG_TYPE="bashrc" echo " csh, tcsh, ksh and bash."
echo "`fixlen "Shell:" $WIDTH` ${SHELL##*/}" echo
;; fatalError=`expr $fatalError + 1`
*) ;;
# USER_CONFIG_TYPE=""
echo "`fixlen "Shell:" $WIDTH` ${SHELL##*/}"
echo "FATAL ERROR: Cannot identify the shell you are running."
echo " OpenFOAM ${FOAM_VERSION} is compatible with "
echo " csh, tcsh, ksh and bash."
echo
FATALERROR=`expr $FATALERROR + 1`;;
esac esac
} }
checkHostName() { checkHostName()
if [ ! "$HOST_NAME" ]; then {
echo "`fixlen "Host:" $WIDTH` ${HOST_NAME}" echo "`fixlen Host: $WIDTH` $HOST"
if [ ! "$HOST" ]
then
echo "FATAL ERROR: Cannot stat hostname." echo "FATAL ERROR: Cannot stat hostname."
echo " Contact your system administrator, " echo " Contact your system administrator, "
echo " OpenFOAM ${FOAM_VERSION} needs a valid " echo " OpenFOAM ${FOAM_VERSION} needs a valid "
echo " hostname to function." echo " hostname to function."
echo echo
FATALERROR=`expr $FATALERROR + 1` fatalError=`expr $fatalError + 1`
else
echo "`fixlen "Host:" $WIDTH` ${HOST_NAME}"
fi fi
} }
checkOS () { checkOS()
case "$OS" in {
case "$OSTYPE" in
Linux | LinuxAMD64 | SunOS ) Linux | LinuxAMD64 | SunOS )
echo "`fixlen "OS:" $WIDTH` ${OS} version $(uname -r)" echo "`fixlen OS: $WIDTH` $OSTYPE version $(uname -r)"
;; ;;
*) *)
echo "FATAL ERROR: Incompatible operating system \"$OS\"." echo "FATAL ERROR: Incompatible operating system \"$OSTYPE\"."
echo " OpenFOAM ${FOAM_VERSION} is currently " echo " OpenFOAM $FOAM_VERSION is currently "
echo " available for Linux and SunOS only." echo " available for Linux and SunOS only."
echo echo
FATALERROR=`expr $FATALERROR + 1` fatalError=`expr $fatalError + 1`
;; ;;
esac esac
} }
@ -466,8 +379,8 @@ hline
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
heading "Checking main OpenFOAM env variables..." heading "Checking main OpenFOAM env variables..."
COL1=`fixlen "Environment_variable" 21` COL1=`fixlen Environment_variable 21`
COL2=`fixlen "Set_to_file_or_directory" 40` COL2=`fixlen Set_to_file_or_directory 40`
COL3="Valid" COL3="Valid"
COL4="Path" COL4="Path"
COL5="Crit" COL5="Crit"
@ -505,20 +418,21 @@ hline
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
heading "Third party software" heading "Third party software"
COL1=`fixlen "Software" 9` COL1=`fixlen Software 9`
COL2=`fixlen "Version" 10` COL2=`fixlen Version 10`
COL3=`fixlen "Location" 10` COL3=`fixlen Location 10`
hline hline
echo "$COL1 $COL2 $COL3" echo "$COL1 $COL2 $COL3"
hline hline
reportExecutable gcc "${WM_COMPILER_DIR}/bin/gcc" reportExecutable gcc
reportExecutable gzip reportExecutable gzip
if [ "$OS" = Linux ] ; then if [ "$OSTYPE" = Linux ]
then
reportExecutable tar reportExecutable tar
else else
reportExecutable gtar reportExecutable gtar
fi fi
reportExecutable icoFoam "${FOAM_APPBIN}/icoFoam" reportExecutable $foamTestApp "$FOAM_APPBIN/$foamTestApp"
hline hline
@ -526,27 +440,28 @@ hline
heading "Summary" heading "Summary"
hline hline
if [ $FATALERROR -gt 0 ] ; then if [ $fatalError -gt 0 ]
echo "The system test has evoked $FATALERROR fatal error(s)." then
echo "The system test has evoked $fatalError fatal error(s)."
else else
echo "Base configuration ok." echo "Base configuration ok."
fi fi
echo "" if [ $criticalError -gt 0 ]
if [ $CRITICALERROR -gt 0 ]; then then
echo "The foam installation contains $CRITICALERROR critical error(s)." echo "The foam installation contains $criticalError critical error(s)."
else else
echo "Critical systems ok." echo "Critical systems ok."
fi fi
echo "" if [ $criticalError -gt 0 ] || [ $fatalError -gt 0 ]
if [ $CRITICALERROR -gt 0 ] || [ $FATALERROR -gt 0 ]; then then
echo "Review the output for warning messages and consult " echo
echo "the installation guide for trouble shooting." echo "Review the output for warning messages and consult"
echo "the installation guide for troubleshooting."
fi fi
echo ""
echo "done." echo
echo Done
echo "" echo
exit 0 exit 0

View File

@ -38,31 +38,32 @@ FOAM_VERSION=1.6
HLINE="-----------------------------------------------------------------------" HLINE="-----------------------------------------------------------------------"
WIDTH=16 WIDTH=16
unset FATALERROR unset fatalError
# FUNCTIONS # FUNCTIONS
# ~~~~~~~~~ # ~~~~~~~~~
heading () { heading()
echo "" {
echo
echo "$1" echo "$1"
echo "$HLINE" echo "$HLINE"
} }
lenBase () { lenBase()
{
echo $1 | tr -d " " | wc -m | tr -d " " echo $1 | tr -d " " | wc -m | tr -d " "
} }
length () { length()
{
NOCHAR=$(lenBase $1) NOCHAR=$(lenBase $1)
NOCHAR=$(expr $NOCHAR - 1) NOCHAR=$(expr $NOCHAR - 1)
if [ $NOCHAR -eq -1 ] [ $NOCHAR -ge 0 ] || NOCHAR=0
then
NOCHAR=0
fi
echo $NOCHAR echo $NOCHAR
} }
fixlen () { fixlen()
{
WORD=$1 WORD=$1
ONELEN=$(length "$1") ONELEN=$(length "$1")
LDIFF=$(expr $ONELEN - $2) LDIFF=$(expr $ONELEN - $2)
@ -86,48 +87,43 @@ fixlen () {
heading "Checking basic system..." heading "Checking basic system..."
# check shell # check shell
echo "$(fixlen "Shell:" $WIDTH) $SHELL" echo "$(fixlen Shell: $WIDTH) $SHELL"
case "$SHELL" in case "$SHELL" in
*/csh | */tcsh) */csh | */tcsh | */bash | */ksh)
USER_CONFIG_TYPE=cshrc
;;
*/bash | */ksh)
USER_CONFIG_TYPE=bashrc
;; ;;
*) *)
USER_CONFIG_TYPE="" echo "ERROR: Cannot identify the current shell."
echo "FATALERROR: Cannot identify the current shell." echo " OpenFOAM $FOAM_VERSION is compatible"
echo " OpenFOAM ${FOAM_VERSION} is compatible" echo " with csh, tcsh, ksh and bash."
echo " with csh, tcsh, ksh and bash."
echo echo
FATALERROR=yes fatalError=true
;; ;;
esac esac
# check hostname # check hostname
HOST=$(uname -n) HOST=$(uname -n)
echo "$(fixlen "Host:" $WIDTH) $HOST" echo "$(fixlen Host: $WIDTH) $HOST"
if [ $(length $HOST) -eq 0 ] if [ $(length $HOST) -eq 0 ]
then then
echo "FATALERROR: Cannot stat hostname." echo "ERROR: Cannot stat hostname."
echo " OpenFOAM ${FOAM_VERSION} needs a valid hostname to function." echo " OpenFOAM $FOAM_VERSION needs a valid hostname to function."
echo " Contact your system administrator. " echo " Contact your system administrator. "
echo echo
FATALERROR=yes fatalError=true
fi fi
# check os # check os
OS=$(uname -s) OSTYPE=$(uname -s)
case "$OS" in case "$OSTYPE" in
Linux | LinuxAMD64 | SunOS ) Linux | LinuxAMD64 | SunOS )
echo "$(fixlen "OS:" $WIDTH) ${OS} version $(uname -r)" echo "$(fixlen OS: $WIDTH) $OSTYPE version $(uname -r)"
;; ;;
*) *)
echo "FATALERROR: Incompatible operating system \"$OS\"." echo "ERROR: Incompatible operating system \"$OSTYPE\"."
echo " OpenFOAM ${FOAM_VERSION} is currently available for " echo " OpenFOAM $FOAM_VERSION is currently available for "
echo " Linux, LinuxAMD64 and SunOS only." echo " Linux, LinuxAMD64 and SunOS only."
echo echo
FATALERROR=yes fatalError=true
;; ;;
esac esac
@ -139,20 +135,20 @@ then
USER_NAME=$USER USER_NAME=$USER
fi fi
echo "$(fixlen "User:" $WIDTH) ${USER_NAME}" echo "$(fixlen User: $WIDTH) ${USER_NAME}"
if [ $(length $USER_NAME) -eq 0 ] if [ $(length $USER_NAME) -eq 0 ]
then then
echo "FATALERROR: Cannot stat user name ${USER_NAME}." echo "ERROR: Cannot stat user name $USER_NAME."
echo " OpenFOAM ${FOAM_VERSION} needs a valid user name." echo " OpenFOAM $FOAM_VERSION needs a valid user name."
echo " Contact your system administrator. " echo " Contact your system administrator. "
echo "" echo
FATALERROR=yes fatalError=true
fi fi
echo "" echo
echo "" echo
if [ -n "$FATALERROR" ] if [ "$fatalError" = true ]
then then
echo "System check: FAIL" echo "System check: FAIL"
echo "==================" echo "=================="