Move script to cgi-bin for default AlmaLinux SELinux rules
This commit is contained in:
1 parent
1e5e20b0a3
commit
cacb69f5f5
1 file changed
+1
-1
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env ruby
|
||||
|
||||
require "cgi"
|
||||
require "erb"
|
||||
|
||||
ASSETS_DIR = File.join(__dir__, "../assets")
|
||||
|
||||
cgi = CGI.new
|
||||
|
||||
template = ERB.new(File.read(File.join(ASSETS_DIR, "login.erb")))
|
||||
|
||||
cgi.out("type" => "text/html", "charset" => "UTF-8") do
|
||||
template.result(binding)
|
||||
end
|
||||
Reference in new issue
Block a user