s/cgi/cgi-bin/g

This commit is contained in:
Neale Pickett 2015-05-26 10:14:30 -06:00
parent 4957241487
commit f2129b4b21
9 changed files with 9 additions and 9 deletions

View File

@ -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>

View File

@ -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

View File

@ -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
@ -72,4 +72,4 @@ git ls-files | while read fn; do
echo "??? $fn"
;;
esac
done
done

View File

@ -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"

View File

@ -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"
@ -46,4 +46,4 @@ end
body = body .. "</dl>\n"
body = body .. "<p>Reloading this page periodically may yield updated puzzle lists.</p>"
koth.page("Open Puzzles", body)
koth.page("Open Puzzles", body)

View File

@ -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"

View File

@ -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>