From a6120a0548246e75dbc247e15326821a7043df34 Mon Sep 17 00:00:00 2001 From: Andreas Brodmann Date: Wed, 16 Jan 2008 13:31:59 +0000 Subject: updates to the squid/dansguardian gui, e.g. get_version stuff, unified the apps to look the same as the others git-svn-id: svn://svn.alpinelinux.org/acf/squid/trunk@589 ab2d0c66-481e-0410-8bed-d214d4d58bed --- squid-controller.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'squid-controller.lua') diff --git a/squid-controller.lua b/squid-controller.lua index b09acab..f6a90f2 100644 --- a/squid-controller.lua +++ b/squid-controller.lua @@ -51,6 +51,8 @@ end basic = function( self ) + local info = { status = { value = "stopped" }, version = { value = self.model.get_squid_version() }, srvctrl = { value = srvctrl} }; + local option = { script = ENV["SCRIPT_NAME"], prefix = self.conf.prefix, controller = self.conf.controller, @@ -92,9 +94,10 @@ basic = function( self ) end service.status = self.model.get_status() + info.status.value = service.status; service.config, service.error = self.model.get_basic_config() - return ( cfe ({ option = option, service = service }) ) + return ( cfe ({ option = option, service = service, info = info }) ) end authentication = function( self ) -- cgit v1.2.3