correct template to remove old socket
authorSam <sam.saffron@gmail.com>
Tue, 7 Jul 2015 23:58:21 +0000 (09:58 +1000)
committerSam <sam.saffron@gmail.com>
Tue, 7 Jul 2015 23:58:21 +0000 (09:58 +1000)
templates/web.socketed.template.yml

index ca3b29c0490c88c1c6781a2cc6546a7f9ee13d20..b8c615ff77feffdf3a1462cd51ff2f9710b8e10e 100644 (file)
@@ -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;/