From: Angus Salkeld Date: Thu, 31 May 2012 00:48:35 +0000 (+1000) Subject: Fix the HA template (sed the username/password) X-Git-Tag: 2014.1~1772 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=07d1eb9b78e72ae6266680f13824b254a7564d6b;p=openstack-build%2Fheat-build.git Fix the HA template (sed the username/password) Change-Id: I835a9f6d2a9abfdeb5af8fb703c8abae5afae2d1 Signed-off-by: Angus Salkeld --- diff --git a/templates/WordPress_Single_Instance_With_HA.template b/templates/WordPress_Single_Instance_With_HA.template index 4a43cd45..71be20ad 100644 --- a/templates/WordPress_Single_Instance_With_HA.template +++ b/templates/WordPress_Single_Instance_With_HA.template @@ -239,6 +239,11 @@ "mysql -u root --password='", { "Ref" : "DBRootPassword" }, "' < /tmp/setup.mysql || error_exit 'Failed to create database.'\n", + "sed --in-place --e s/database_name_here/", { "Ref" : "DBName" }, + "/ --e s/username_here/", { "Ref" : "DBUsername" }, + "/ --e s/password_here/", { "Ref" : "DBPassword" }, + "/ /usr/share/wordpress/wp-config.php\n", + "# install cfn-hup crontab\n", "crontab /tmp/cfn-hup-crontab.txt\n",