From: Guo Xiang Tan Date: Mon, 7 Mar 2016 23:30:43 +0000 (+0800) Subject: Ensure directory is created otherwise script `ensure-web-nginx-read` fails. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2191df8bd4fe568788a955b83666515343e4c7cd;p=discourse_docker.git Ensure directory is created otherwise script `ensure-web-nginx-read` fails. --- diff --git a/templates/web.template.yml b/templates/web.template.yml index b4fdd92..5fbe434 100644 --- a/templates/web.template.yml +++ b/templates/web.template.yml @@ -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: