From 6c9f16f82e911e1b2c05918f9b8ce0d78fb3aa55 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 30 Dec 2009 14:33:49 +0000 Subject: Cleaned up acf.conf, removed hardcoded /usr/share/acf paths. --- lib/roles.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/roles.lua') diff --git a/lib/roles.lua b/lib/roles.lua index 0366a30..bfd45cf 100644 --- a/lib/roles.lua +++ b/lib/roles.lua @@ -17,7 +17,7 @@ end -- Return a list of *controller.lua files list_controllers = function(self) local list = {} - for file in fs.find(".*controller%.lua", "/usr/share/acf", true) do + for file in fs.find(".*controller%.lua", self.conf.appdir, true) do if not string.find(file, "acf_") then list[#list + 1] = file end @@ -29,7 +29,7 @@ end -- Return information about all or specified controller files get_controllers = function(self,pre,controller) --we get all the controllers - local list = roles.list_controllers() + local list = roles.list_controllers(self) --we need to grab the directory and name of file local temp = {} for k,v in pairs(list) do -- cgit v1.2.3