mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
puppet: Set correct permissions for supervisor.sock.
We can't do this with a "file" entry because it doesn't handle objects of type socket. (imported from commit 5f0f79f1a7905c4d70cc7e2f4c474b0629841c12)
This commit is contained in:
@@ -20,4 +20,10 @@ class zulip::supervisor {
|
||||
hasrestart => true,
|
||||
restart => "supervisorctl reload"
|
||||
}
|
||||
|
||||
exec { "fix_supervisor_socket_permissions":
|
||||
command => "chown humbug:humbug /var/run/supervisor.sock",
|
||||
unless => "bash -c 'ls -ld /var/run/supervisor.sock | cut -f 3-4 -d\" \" | grep -q \"^humbug humbug$\"'",
|
||||
require => Service["supervisor"],
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user