diff options
author | Andreas Brodmann <andreas.brodmann@gmail.com> | 2008-01-16 13:31:59 +0000 |
---|---|---|
committer | Andreas Brodmann <andreas.brodmann@gmail.com> | 2008-01-16 13:31:59 +0000 |
commit | a6120a0548246e75dbc247e15326821a7043df34 (patch) | |
tree | c2dfcbabd347a680fa1617381006176a4f52fc7d /squid-controller.lua | |
parent | 2e98280f07da84950af2fa5c2cdadfedf3590c05 (diff) | |
download | acf-squid-a6120a0548246e75dbc247e15326821a7043df34.tar.bz2 acf-squid-a6120a0548246e75dbc247e15326821a7043df34.tar.xz |
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
Diffstat (limited to 'squid-controller.lua')
-rw-r--r-- | squid-controller.lua | 5 |
1 files changed, 4 insertions, 1 deletions
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 ) |