This is part of a bash script to install ruby on rails. ? There are some problems with this script that must be fixed (we think with the installation of mysql with yum). ? Mysql is required for our? ruby on rails system. ? The problem with the current script is if it is run on a server with an older version of mysql, it will not successfully update mysql because other packages of versions that are not compatible are required. ? Also, during some tests, the line "yum -y remove" caused mysql or something else to break, and causes existing Perl scripts on the server to have errors.
Your job is to improve the logic of this script so that mysql can be updated successfully to the version required by ruby on rails. ? Any changes made must run automatically without the need for user input. ? We will test your script on a CentOS server with an old version of mysql installed.
## Deliverables
Must run on CentOS linux