I am having an application which is installed in multiple places. I would like to create a script which performs the upgrade of the application. Both mysql tables and the actual PHP-application needs to be upgraded.
Since this is the first time I'm doing this I am wondering which way I should go; creating the script in PHP or in Bash? What's the pros and cons for the two alternatives?
In the long run, it may be the case that one can do the upgrade for the application from the actual application, but in this first step I will run it from the shell.
I am using linux (CentOS), apache, mysql
Since I am going to inject information from a database into the script, I go with PHP.
Later on this script may be quite competent so I think it is easier to do it in PHP then Bash.