summaryrefslogtreecommitdiffstats
path: root/cgi-bin
diff options
context:
space:
mode:
Diffstat (limited to 'cgi-bin')
-rwxr-xr-xcgi-bin/provisioning.cgi10
1 files changed, 2 insertions, 8 deletions
diff --git a/cgi-bin/provisioning.cgi b/cgi-bin/provisioning.cgi
index 5ac1684..e4c9303 100755
--- a/cgi-bin/provisioning.cgi
+++ b/cgi-bin/provisioning.cgi
@@ -117,10 +117,7 @@ if ( request_method == "GET" ) then
log:write("Checking PROV Table for results\n")
-- Load the ACF mvc
- local PATH = package.path
- package.path = "/usr/share/acf/www/cgi-bin/?.lua;" .. package.path
- require("mvc")
- package.path = PATH
+ mvc = require("acf.mvc")
-- We'll use the cli controller, but change the view resolver to call the template
local pathinfo = ENV.PATH_INFO
FRAMEWORK=mvc:new()
@@ -163,10 +160,7 @@ elseif ( request_method == "PUT" ) then
if not string.match(path_info, "%.log$") then
log:write("Checking PROV Table for results\n")
-- Load the ACF mvc
- local PATH = package.path
- package.path = "/usr/share/acf/www/cgi-bin/?.lua;" .. package.path
- require("mvc")
- package.path = PATH
+ mvc = require("acf.mvc")
-- We'll use the cli controller, but change the view resolver to report HTTP code
local pathinfo = ENV.PATH_INFO
FRAMEWORK=mvc:new()