Updated spec file to ignore upgrade error message

parent be8f5a6b
...@@ -753,13 +753,16 @@ if [ -d $mysql_datadir ] ; then ...@@ -753,13 +753,16 @@ if [ -d $mysql_datadir ] ; then
echo "MySQL RPM upgrade to version $NEW_VERSION" > $STATUS_FILE echo "MySQL RPM upgrade to version $NEW_VERSION" > $STATUS_FILE
echo "'pre' step running at `date`" >> $STATUS_FILE echo "'pre' step running at `date`" >> $STATUS_FILE
echo >> $STATUS_FILE echo >> $STATUS_FILE
echo "ERR file(s):" >> $STATUS_FILE fcount=`ls -ltr $mysql_datadir/*.err 2>/dev/null | wc -l`
ls -ltr $mysql_datadir/*.err >> $STATUS_FILE if [ $fcount -gt 0 ] ; then
echo >> $STATUS_FILE echo "ERR file(s):" >> $STATUS_FILE
echo "Latest 'Version' line in latest file:" >> $STATUS_FILE ls -ltr $mysql_datadir/*.err >> $STATUS_FILE
grep '^Version' `ls -tr $mysql_datadir/*.err | tail -1` | \ echo >> $STATUS_FILE
tail -1 >> $STATUS_FILE echo "Latest 'Version' line in latest file:" >> $STATUS_FILE
echo >> $STATUS_FILE grep '^Version' `ls -tr $mysql_datadir/*.err | tail -1` | \
tail -1 >> $STATUS_FILE
echo >> $STATUS_FILE
fi
if [ -n "$SERVER_TO_START" ] ; then if [ -n "$SERVER_TO_START" ] ; then
# There is only one PID file, race possibility ignored # There is only one PID file, race possibility ignored
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment