From ea2c5937d25cfae4da61cf800944436f1659cdb4 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 21 Sep 2015 14:55:56 +0000 Subject: Fix provisioning.cgi to only process PUTs for .cfg files This was causing a problem with Polycoms PUTing .tar.gz files. --- cgi-bin/provisioning.cgi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cgi-bin/provisioning.cgi b/cgi-bin/provisioning.cgi index 0e7e5be..20f08e1 100755 --- a/cgi-bin/provisioning.cgi +++ b/cgi-bin/provisioning.cgi @@ -153,9 +153,10 @@ elseif ( request_method == "PUT" ) then os.exit() end - -- Don't bother for .log, -calls.xml (VVX related) and -directory.xml files + -- We will only process .cfg files + -- Don't bother for .log, -calls.xml (VVX related), -directory.xml, ... files local f = string.match(basename, mac.."(.*)") - if not ( string.match(path_info, "%.log$") or string.match(path_info, "%-calls.xml$") or string.match(path_info, "%-directory.xml$") ) then + if string.match(path_info, "%.cfg$") then log:write("Checking PROV Table for results\n") -- Load the ACF mvc mvc = require("acf.mvc") -- cgit v1.2.3