Fix not recreating web sockets

This commit is contained in:
PJ Eby 2020-02-29 15:17:35 -05:00
parent 45b5ad4ccb
commit 76166500d2

View file

@ -129,7 +129,7 @@ haraka_sub_web=$sockdir/haraka/web-11381.sock
- sub 'const hp = .*' \
'const hp = [null, null, host_port];'
- sub 'Server.http.server.listen.*$' \
'!fs.existsSync(host_port)||fs.removeSync(host_port); Server.http.server.listen(host_port, function(){fs.chmodSync(host_port, 0o777);});'
'!fs.existsSync(host_port)||fs.unlinkSync(host_port); Server.http.server.listen(host_port, function(){fs.chmodSync(host_port, 0o777);});'
}}
}}