Commit 457fe19a authored by mh's avatar mh
Browse files

also enable it for debian

parent 55d0bfaa
......@@ -132,12 +132,12 @@ set alert <%= scope.lookupvar('monit::alert') %>
<% if scope.lookupvar('monit::enable_httpd') == 'yes' -%>
set httpd port <%= scope.lookupvar('monit::httpd_port') %> and use address localhost
allow localhost
<%
<% if @secret
require 'digest/sha1'
s=scope.lookupvar('monit::secret')
-%>
allow monit:<%= Digest::SHA1.hexdigest(s + Digest::SHA1.hexdigest(s + fqdn)) %>
<% end -%>
allow monit:<%= Digest::SHA1.hexdigest(@secret + Digest::SHA1.hexdigest(@secret + fqdn)) %>
<% end
end -%>
#
###############################################################################
## Services
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment