From fb59131e0628c0aa7dff2e5b62c55ad18bd08fb5 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Tue, 26 May 2015 10:16:22 -0600 Subject: [PATCH] Run lua from path --- www/cgi-bin/cgi.lua | 2 +- www/cgi-bin/koth.lua | 2 +- www/cgi-bin/puzzler.cgi | 2 +- www/cgi-bin/puzzles.cgi | 2 +- www/cgi-bin/register.cgi | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/www/cgi-bin/cgi.lua b/www/cgi-bin/cgi.lua index 5d47013..b37d322 100644 --- a/www/cgi-bin/cgi.lua +++ b/www/cgi-bin/cgi.lua @@ -1,4 +1,4 @@ -#! /usr/bin/lua +#! /usr/bin/env lua local cgi = {} diff --git a/www/cgi-bin/koth.lua b/www/cgi-bin/koth.lua index f002bbd..cb46c87 100644 --- a/www/cgi-bin/koth.lua +++ b/www/cgi-bin/koth.lua @@ -1,4 +1,4 @@ -#! /usr/bin/lua +#! /usr/bin/env lua local koth = {} diff --git a/www/cgi-bin/puzzler.cgi b/www/cgi-bin/puzzler.cgi index a8637d1..655a242 100755 --- a/www/cgi-bin/puzzler.cgi +++ b/www/cgi-bin/puzzler.cgi @@ -1,4 +1,4 @@ -#! /usr/bin/lua +#! /usr/bin/env lua package.path = "?.lua;cgi-bin/?.lua;www/cgi-bin/?.lua" diff --git a/www/cgi-bin/puzzles.cgi b/www/cgi-bin/puzzles.cgi index b2ab687..1e0b199 100755 --- a/www/cgi-bin/puzzles.cgi +++ b/www/cgi-bin/puzzles.cgi @@ -1,4 +1,4 @@ -#! /usr/bin/lua +#! /usr/bin/env lua package.path = "?.lua;cgi-bin/?.lua;www/cgi-bin/?.lua" diff --git a/www/cgi-bin/register.cgi b/www/cgi-bin/register.cgi index 8c5e310..c1ca49d 100755 --- a/www/cgi-bin/register.cgi +++ b/www/cgi-bin/register.cgi @@ -1,4 +1,4 @@ -#! /usr/bin/lua +#! /usr/bin/env lua package.path = "?.lua;cgi-bin/?.lua;www/cgi-bin/?.lua"