From a59e9e6cee86570de4f6f40e7904dc96fd51b34a Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 8 Jul 2015 09:58:21 +1000 Subject: [PATCH] correct template to remove old socket --- templates/web.socketed.template.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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;/ -- 2.25.1