diff options
author | Mika Havela <mhavela@mhavela-netbook.(none)> | 2009-12-31 11:31:30 +0100 |
---|---|---|
committer | Mika Havela <mhavela@mhavela-netbook.(none)> | 2009-12-31 11:31:30 +0100 |
commit | 605dab2abcf6e762f11d71e5b57f3a10429e9645 (patch) | |
tree | 4ee1aabc1688f600c7e24fcf94ebd21f0ee25f33 | |
parent | 900e1950a0222ce0ea626fe94f4c7b79a0e83a4a (diff) | |
parent | 4d02c686b706ea88ad20575dc0af9d24a740dcf6 (diff) | |
download | acf-weblog-605dab2abcf6e762f11d71e5b57f3a10429e9645.tar.bz2 acf-weblog-605dab2abcf6e762f11d71e5b57f3a10429e9645.tar.xz |
Merge branch 'master' of ssh://mhavela@git.alpinelinux.org/gitroot/acf-weblog
-rwxr-xr-x | weblogimport | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/weblogimport b/weblogimport index eaa1918..9bdc724 100755 --- a/weblogimport +++ b/weblogimport @@ -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/weblog/?.lua;/usr/share/acf/lib/?.lua;" .. package.path -local t = require("weblog-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 weblog model to import the logs -t.importlogs() +#!/bin/sh +/usr/share/acf/www/cgi-bin/cli weblog/weblog/importlogs |