Use rm -rf in remove-old-socket (#409)
authorVincent <31770422+khannurien@users.noreply.github.com>
Fri, 28 Sep 2018 09:41:18 +0000 (11:41 +0200)
committerSam <sam.saffron@gmail.com>
Fri, 28 Sep 2018 09:41:18 +0000 (17:41 +0800)
In some cases, the leftover socket is actually a directory.

templates/web.socketed.template.yml

index 2addf49973f4714948c48ade08f2c1d6651c337d..ff4f87a1b5b3c0115ad5ca57345bd6a820ddfa1b 100644 (file)
@@ -10,7 +10,7 @@ run:
      chmod: "+x"
      contents: |
         #!/bin/bash
-        rm -f /shared/nginx.http*.sock
+        rm -rf /shared/nginx.http*.sock
   - replace:
      filename: "/etc/nginx/conf.d/discourse.conf"
      from: /listen 80;/