Merge pull request #678 from remibergsma/sec-stor-script-mysql-default-port
Improve cloud-install-sys-tmplt to work in dev environment againThe script that you run to initially setup secondary storage, had some errors. As it now depends on /etc/cloudstack/management/db.properties, it did not work any more on my development environment. I defined some defaults that work in development environments (those are sane defaults anyway), then check if the /etc/cloudstack/management/db.properties file exists. If so, it reads from there and gets the vars just like before. If not, it keeps the defaults unless of course someone overrides them on the command line. While working on the script, I also fixed the indentation and found a query that was not yet using the -P mysql port variable. I tested it both on my development environment as well as in an environment installed from RPM (where you'd have /etc/cloudstack/management/db.properties and that both worked. PS @snuf please check if it also works again for you. * pr/678: clean-ups in the file this query had no -P port specified so did not work make sane defaults for MySQL settings Signed-off-by: Remi Bergsma <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/fa56b3f3 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/fa56b3f3 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/fa56b3f3 Branch: refs/heads/master Commit: fa56b3f37e8321da84b357ecb8d9bf583478cc17 Parents: f65dec4 2f858a7 Author: Remi Bergsma <[email protected]> Authored: Tue Aug 11 17:19:15 2015 +0200 Committer: Remi Bergsma <[email protected]> Committed: Tue Aug 11 17:19:16 2015 +0200 ---------------------------------------------------------------------- .../storage/secondary/cloud-install-sys-tmplt | 123 ++++++++++--------- 1 file changed, 65 insertions(+), 58 deletions(-) ----------------------------------------------------------------------
