summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2009-12-30 14:28:43 +0000
committerTed Trask <ttrask01@yahoo.com>2009-12-30 14:28:43 +0000
commit3a891ad1e7eb2bcd1fee42cfa923f984610f76d6 (patch)
tree4d73b901fb5c67d778a684b839775ca89c50fa1b
parent6d49c95dc3cc375cf1f7ea0e2d4350ef68f81268 (diff)
downloadacf-did-3a891ad1e7eb2bcd1fee42cfa923f984610f76d6.tar.bz2
acf-did-3a891ad1e7eb2bcd1fee42cfa923f984610f76d6.tar.xz
Simplified script to use text-based ACF client.
-rwxr-xr-xdidpublish26
1 files changed, 2 insertions, 24 deletions
diff --git a/didpublish b/didpublish
index 1f22b79..2d6e001 100755
--- a/didpublish
+++ b/didpublish
@@ -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