Search for the two
mysqladmin lines with the word "ping" in them, and insert the string "
-u $RANDOM" before the word "ping:"
if [ -n "`/usr/bin/mysqladmin -u $RANDOM ping 2> /dev/null`" ]; then
if !([ -n "`/usr/bin/mysqladmin -u $RANDOM ping 2> /dev/null`" ]); then