summaryrefslogtreecommitdiffstats
path: root/config/delete_device.lua
diff options
context:
space:
mode:
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