vagrant-wordpress/cookbooks/apache2/templates/default/mod_auth_openid.rb.erb

13 lines
215 B
Plaintext
Raw Normal View History

2011-06-12 21:15:48 +00:00
#!/usr/bin/env ruby
allowed_openids = Array.new
<% node[:apache][:allowed_openids].each do |id| -%>
allowed_openids << "<%= id %>"
<% end -%>
if allowed_openids.grep(ARGV[0]).length > 0
exit 0
else
exit 1
end