From: Sam Date: Tue, 7 Jul 2015 23:58:21 +0000 (+1000) Subject: correct template to remove old socket X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a59e9e6cee86570de4f6f40e7904dc96fd51b34a;p=discourse_docker.git correct template to remove old socket --- diff --git a/templates/web.socketed.template.yml b/templates/web.socketed.template.yml index ca3b29c..b8c615f 100644 --- a/templates/web.socketed.template.yml +++ b/templates/web.socketed.template.yml @@ -1,6 +1,16 @@ - run: - - exec: rm -f /shared/nginx.http*.sock; + - file: + path: /etc/runit/1.d/remove-old-socket + chmod: "+x" + contents: | + #!/bin/bash + rm -f /shared/nginx.http*.sock + - file: + path: /etc/runit/3.d/remove-old-socket + chmod: "+x" + contents: | + #!/bin/bash + rm -f /shared/nginx.http*.sock - replace: filename: "/etc/nginx/conf.d/discourse.conf" from: /listen 80;/