runit-man 1.9.1 → 1.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/runit-man/app.rb +2 -2
- data/sv/run.erb +1 -1
- metadata +2 -2
data/lib/runit-man/app.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
require 'base64'
|
2
1
|
require 'ftools'
|
3
2
|
require 'json'
|
4
3
|
require 'erubis'
|
@@ -192,7 +191,8 @@ class RunitMan < Sinatra::Base
|
|
192
191
|
:port => RunitMan.port,
|
193
192
|
:bind => RunitMan.respond_to?(:bind) ? RunitMan.bind : nil,
|
194
193
|
:server => RunitMan.server,
|
195
|
-
:files_to_view => RunitMan.files_to_view
|
194
|
+
:files_to_view => RunitMan.files_to_view,
|
195
|
+
:auth => RunitMan.allowed_users
|
196
196
|
)
|
197
197
|
end
|
198
198
|
File.chmod(0755, script_name)
|
data/sv/run.erb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
#!/bin/sh
|
2
2
|
exec 2>&1
|
3
|
-
exec runit-man<% if server.kind_of?(String) %> -s "<%= server %>"<% end %><% if bind %> -b <%= bind %><% end %> -p <%= port %> -a "<%= active_services_directory %>" -f "<%= all_services_directory %>"<% files_to_view.each do |f| %> -v "<%= f %>"<% end %>
|
3
|
+
exec runit-man<% if server.kind_of?(String) %> -s "<%= server %>"<% end %><% if bind %> -b <%= bind %><% end %> -p <%= port %> -a "<%= active_services_directory %>" -f "<%= all_services_directory %>"<% files_to_view.each do |f| %> -v "<%= f %>"<% end %><% auth.each_pair do |name, password| %> -u <%= name %>:<%= password %><% end %>
|
4
4
|
|