summaryrefslogtreecommitdiffstats
path: root/samba-controller.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2009-08-24 08:30:37 +0000
committerTed Trask <ttrask01@yahoo.com>2009-08-24 08:30:37 +0000
commit3d8dfcb04685f17bb12cf56ea6beb50009f3b483 (patch)
tree55c8a20511af3f8fce433f166605eb287170a7c0 /samba-controller.lua
parent2162ccd34f3de703adbf71c450e637f0553b1379 (diff)
downloadacf-samba-3d8dfcb04685f17bb12cf56ea6beb50009f3b483.tar.bz2
acf-samba-3d8dfcb04685f17bb12cf56ea6beb50009f3b483.tar.xz
Added ability to edit conf.d file, and modified join too add AD and to read from config rather than write. Bumped to version 0.3.0v0.3.0
Diffstat (limited to 'samba-controller.lua')
-rw-r--r--samba-controller.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/samba-controller.lua b/samba-controller.lua
index b810bb9..e3f1a4f 100644
--- a/samba-controller.lua
+++ b/samba-controller.lua
@@ -13,8 +13,12 @@ function startstop(self)
return controllerfunctions.handle_startstop(self, self.model.startstop_service, self.clientdata)
end
+function listfiles(self)
+ return self.model.listconfigfiles()
+end
+
function expert(self)
- return controllerfunctions.handle_form(self, self.model.getconfigfile, self.model.setconfigfile, self.clientdata, "Save", "Edit Config", "Configuration Saved")
+ return controllerfunctions.handle_form(self, function() return self.model.getconfigfile(self.clientdata.filename) end, self.model.setconfigfile, self.clientdata, "Save", "Edit Samba File", "File Saved")
end
function join(self)