summaryrefslogtreecommitdiffstats
path: root/openvpn-controller.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2009-12-29 14:59:46 +0000
committerTed Trask <ttrask01@yahoo.com>2009-12-29 14:59:46 +0000
commit7ec500251e61075bff07c8d40274cca92ba321af (patch)
tree011459100560b8cc81d148eb26a74ef77e2b379c /openvpn-controller.lua
parenta164ef3512aeb64918d0240c8bfe1512d1ff509b (diff)
downloadacf-openvpn-7ec500251e61075bff07c8d40274cca92ba321af.tar.bz2
acf-openvpn-7ec500251e61075bff07c8d40274cca92ba321af.tar.xz
Moved certificates to subdirectory and enabled multiple instances.
Diffstat (limited to 'openvpn-controller.lua')
-rw-r--r--openvpn-controller.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/openvpn-controller.lua b/openvpn-controller.lua
index a2926d6..3155701 100644
--- a/openvpn-controller.lua
+++ b/openvpn-controller.lua
@@ -2,6 +2,11 @@ module (..., package.seeall)
require("controllerfunctions")
+mvc = {}
+mvc.on_load = function(self, parent)
+ self.model.set_processname(string.match(self.conf.prefix, "[^/]+"))
+end
+
default_action = "status"
status = function(self)