diff options
-rwxr-xr-x | didpublish | 26 |
1 files changed, 2 insertions, 24 deletions
@@ -1,24 +1,2 @@ -#!/usr/bin/lua - --- Set the path to load libraries and the model -local PATH=package.path -package.path = "/usr/share/acf/app/did/?.lua;/usr/share/acf/lib/?.lua;" .. package.path -local t = require("did-model") -package.path = PATH - --- create a Configuration Framework Entity (cfe) --- returns a table with at least "value", "type", and "label" -cfe = function ( optiontable ) - optiontable = optiontable or {} - me = { value="", - type="text", - label="" } - for key,value in pairs(optiontable) do - me[key] = value - end - return me -end -_G.cfe = cfe - --- Call the DID model to import the logs -t.publishalldefinitions() +#!/bin/sh +/usr/share/acf/www/cgi-bin/cli did/did/publishall |