From 1eb030408051afe71e306f501bcd94bd9dd8509f Mon Sep 17 00:00:00 2001 From: Angus Salkeld Date: Thu, 26 Apr 2012 23:16:25 +1000 Subject: [PATCH] Fix up the template - some scripts not right. Signed-off-by: Angus Salkeld --- templates/WordPress_Single_Instance_With_HA.template | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/templates/WordPress_Single_Instance_With_HA.template b/templates/WordPress_Single_Instance_With_HA.template index 8606d9dfb..3a4149fef 100644 --- a/templates/WordPress_Single_Instance_With_HA.template +++ b/templates/WordPress_Single_Instance_With_HA.template @@ -127,15 +127,19 @@ }, "/etc/cfn/notify-on-httpd-restarted" : { - "content" : "logger -t cfn-event 'http got restarted'\n", - "mode" : "000500", + "content" : { "Fn::Join" : ["", [ + "#!/bin/sh\n", + "logger -t cfn-event 'http got restarted'\n" + ]]}, + "mode" : "000700", "owner" : "root", "group" : "root" }, "/tmp/cfn-hup-crontab.txt" : { "content" : { "Fn::Join" : ["", [ - "MAIL=\n", + "MAIL=\"\"\n", + "\n", "* * * * * /opt/aws/bin/cfn-hup -f\n" ]]}, "mode" : "000600",