MacMiniVault / Mac-Scripts

Automation scripts focused around Mac OS X Server
507 stars 92 forks source link

Script doesn't append custom bash_profile correctly #8

Closed 5stringdeath closed 10 years ago

5stringdeath commented 10 years ago

Today I ran the SQL tuner script for the first time after running your wonderful MySQL installer script. The tuner script threw up the error:

[!!] Couldn't find mysqladmin in your $PATH. Is MySQL installed?

I knew MySQL had been installed correctly because I had already been using it for a couple of hours.

My bash_profile had already been altered when I added a custom default login path. It seems the MySQL installer script appends the export PATH= .... to the end of any line currently in the bash_profile. I simply added a line break between my input and the PATH= and then SQL tuner ran without errors.

I probably didn't notice it initially as I was interacting with MySQL with SQL Pro and not the CLI

Thanks!

jonschwenn commented 10 years ago

I wasn't able to reproduce this exactly, but I added a line break in front of the addition of the PATH variable setting in ~/.bash_profile just to prevent something like this from occurring. Thanks!