From 07d1eb9b78e72ae6266680f13824b254a7564d6b Mon Sep 17 00:00:00 2001 From: Angus Salkeld Date: Thu, 31 May 2012 10:48:35 +1000 Subject: [PATCH] Fix the HA template (sed the username/password) Change-Id: I835a9f6d2a9abfdeb5af8fb703c8abae5afae2d1 Signed-off-by: Angus Salkeld --- templates/WordPress_Single_Instance_With_HA.template | 5 +++++ 1 file changed, 5 insertions(+) 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", -- 2.45.2