Sign in or 

find ./* -type d > "$PAYLOAD_DIR"tempDirList.tmp
while read file;
doecho `expr $DIR_ARRAY_LENGTH + 1`". ""${file:2}"done < "$PAYLOAD_DIR"tempDirList.tmp
DIR_ARRAY[${#DIR_ARRAY[*]}]="${file:2}"
DIR_ARRAY_LENGTH="${#DIR_ARRAY[*]}"
for i in ${!DIR_ARRAY[*]}
doVALID_INPUT_ARRAY[i]=`expr $i + 1`done
while [ "$SELECTION_INDEX" -lt 0 ] || [ "$SELECTION_INDEX" -gt "$MAX_VALID_INDEX" ] do
echo ""
echo "Input the number corresponding to the bundle you would like to apply to this system followed by <ENTER>"
read SELECTION_INDEX
cd "$SCRIPT_DIR""${DIR_ARRAY[SELECTION_INDEX]}"
for i in `ls *.sh`
doecho "executing script $i"ERROR_STRING=`"./${i}"`
if [ "$?" != 0 ]
thenecho "$ERROR_STRING"STATUS=1
break
fi
done
while [ "$SELECTION_INDEX" -lt 0 ] || [ "$SELECTION_INDEX" -gt "$MAX_VALID_INDEX" ] do
Secondly, after the execution of all the updates we check the $STATUS code and if returns 0, then reboot :echo ""
echo "Input the number corresponding to the bundle you would like to apply to this system followed by <ENTER>"
# read SELECTION_INDEX
SELECTION_INDEX=1
if [ "$STATUS" == 0 ]
thenecho "AUTOREBOOT by SCOTT"else
sleep 30
rebootecho "Check /bundleapplicationlogs for ERRORS"fi
TDA-James |
Latest page update: made by TDA-James
, Nov 5 2009, 7:27 PM EST
(about this update
About This Update
Edited by TDA-James
1 word added 1 word deleted view changes - complete history) |
|
Keyword tags:
repository manager dups
More Info: links to this page
|