]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Fix up the template - some scripts not right.
authorAngus Salkeld <asalkeld@redhat.com>
Thu, 26 Apr 2012 13:16:25 +0000 (23:16 +1000)
committerAngus Salkeld <asalkeld@redhat.com>
Thu, 26 Apr 2012 13:22:25 +0000 (23:22 +1000)
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
templates/WordPress_Single_Instance_With_HA.template

index 8606d9dfbf91e9dc3505f08d7f3b845d2aaa5721..3a4149fef6b02908d585e372e92a10741e43de6e 100644 (file)
               },
 
               "/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",