summaryrefslogtreecommitdiffstats
path: root/config/delete_device.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2012-11-26 02:56:30 +0000
committerTed Trask <ttrask01@yahoo.com>2012-11-26 02:56:30 +0000
commita0edc5f3607d568e6c3ddc9d88b4eb9048cea81f (patch)
tree63e305bae6b1e3e88ca422d98109fd67471726b2 /config/delete_device.lua
parent15e9a5f420ec5d2a8e310510424ad86cbfdf3bd8 (diff)
downloadacf-provisioning-a0edc5f3607d568e6c3ddc9d88b4eb9048cea81f.tar.bz2
acf-provisioning-a0edc5f3607d568e6c3ddc9d88b4eb9048cea81f.tar.xz
Comment out references to APP
Diffstat (limited to 'config/delete_device.lua')
-rw-r--r--config/delete_device.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/delete_device.lua b/config/delete_device.lua
index d7e34a1..542ed8b 100644
--- a/config/delete_device.lua
+++ b/config/delete_device.lua
@@ -5,7 +5,7 @@ require("posix")
local root = "/var/www/provisioning/htdocs/"
-APP.logevent("got to delete_device script")
+--APP.logevent("got to delete_device script")
-- First, we delete the associated config files
if oldparams.value.device and string.match(oldparams.value.device.label, "Polycom") and oldparams.value.device.value.mac then
@@ -13,7 +13,7 @@ if oldparams.value.device and string.match(oldparams.value.device.label, "Polyco
if posix.stat(path, "type") == "directory" then
for d in posix.files(path) do
if string.match(d, string.lower(oldparams.value.device.value.mac.value)) and posix.stat(path..d, "type") == "regular" then
- APP.logevent("deleting "..path..d)
+ --APP.logevent("deleting "..path..d)
os.remove(path..d)
end
end