Ensure directory is created otherwise script `ensure-web-nginx-read` fails.
authorGuo Xiang Tan <tgx_world@hotmail.com>
Mon, 7 Mar 2016 23:30:43 +0000 (07:30 +0800)
committerGuo Xiang Tan <tgx_world@hotmail.com>
Mon, 7 Mar 2016 23:38:05 +0000 (07:38 +0800)
templates/web.template.yml

index b4fdd927e2a0812aa02986ddf6c01044080685d2..5fbe43495b8c227bb8c092928e15ffeb211dfa46 100644 (file)
@@ -39,6 +39,7 @@ run:
      chmod: "+x"
      contents: |
         #!/bin/bash
+        mkdir -p /var/log/nginx
         chgrp -R www-data /var/log/nginx
         chgrp www-data /var/log/nginx
 
@@ -60,7 +61,6 @@ run:
      contents: |
         #!/bin/sh
         exec 2>&1
-        mkdir -p /var/log/nginx
         exec /usr/sbin/nginx
 
   - file: