mirror of https://github.com/dirtbags/moth.git
s/cgi/cgi-bin/g
This commit is contained in:
parent
e4a4360f9c
commit
18b9e51adf
|
@ -53,7 +53,7 @@ EOF
|
|||
|
||||
cat <<EOF
|
||||
<section id="form">
|
||||
<form id="puzzler" action="../../cgi/puzzler.cgi" method="get" accept-charset="utf-8" autocomplete="off">
|
||||
<form id="puzzler" action="../../cgi-bin/puzzler.cgi" method="get" accept-charset="utf-8" autocomplete="off">
|
||||
<input type="hidden" name="c" value="$cat">
|
||||
<input type="hidden" name="p" value="$points">
|
||||
<div>Team hash:<input name="t" size="8"></div>
|
||||
|
|
2
bin/once
2
bin/once
|
@ -24,7 +24,7 @@ find state/points.new -type f | while read fn; do
|
|||
done
|
||||
|
||||
# Generate new puzzles.html
|
||||
if www/cgi/puzzles.cgi > www/puzzles.new; then
|
||||
if www/cgi-bin/puzzles.cgi > www/puzzles.new; then
|
||||
mv www/puzzles.new www/puzzles.html
|
||||
fi
|
||||
|
||||
|
|
2
install
2
install
|
@ -45,7 +45,7 @@ setup() {
|
|||
|
||||
|
||||
echo "Figuring out web user..."
|
||||
for www in www-data http _; do
|
||||
for www in www-data http tc _; do
|
||||
id $www && break
|
||||
done
|
||||
if [ $www = _ ]; then
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#! /usr/bin/lua
|
||||
|
||||
package.path = "?.lua;cgi/?.lua;www/cgi/?.lua"
|
||||
package.path = "?.lua;cgi-bin/?.lua;www/cgi-bin/?.lua"
|
||||
|
||||
local cgi = require "cgi"
|
||||
local koth = require "koth"
|
|
@ -1,6 +1,6 @@
|
|||
#! /usr/bin/lua
|
||||
|
||||
package.path = "?.lua;cgi/?.lua;www/cgi/?.lua"
|
||||
package.path = "?.lua;cgi-bin/?.lua;www/cgi-bin/?.lua"
|
||||
|
||||
local koth = require "koth"
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
#! /usr/bin/lua
|
||||
|
||||
package.path = "?.lua;cgi/?.lua;www/cgi/?.lua"
|
||||
package.path = "?.lua;cgi-bin/?.lua;www/cgi-bin/?.lua"
|
||||
|
||||
|
||||
local cgi = require "cgi"
|
|
@ -24,7 +24,7 @@
|
|||
you don't need to do it again.
|
||||
</p>
|
||||
|
||||
<form method="get" action="cgi/register.cgi">
|
||||
<form method="get" action="cgi-bin/register.cgi">
|
||||
<label>Team Hash:</label>
|
||||
<input type="text" name="h">
|
||||
<br>
|
||||
|
|
Loading…
Reference in New Issue