nginx startup: mkdir -p /var/log/nginx
authorMichael Brown <michael.brown@discourse.org>
Thu, 24 Jul 2014 17:55:29 +0000 (13:55 -0400)
committerMichael Brown <michael.brown@discourse.org>
Thu, 24 Jul 2014 17:56:05 +0000 (13:56 -0400)
nginx will error out if it tries to start up and /var/log/nginx isn't there

templates/web.template.yml

index 09c51b5e2c677c3bc430f163f674659c6fd75872..063e79ecf6de3ffe59b95b17c234fa113a70dd3c 100644 (file)
@@ -57,6 +57,7 @@ run:
      contents: |
         #!/bin/sh
         exec 2>&1
+        mkdir -p /var/log/nginx
         exec /usr/sbin/nginx
 
   - exec: