summaryrefslogtreecommitdiffstats
path: root/config/templates/cyberdata-template.lua
diff options
context:
space:
mode:
Diffstat (limited to 'config/templates/cyberdata-template.lua')
-rw-r--r--config/templates/cyberdata-template.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/config/templates/cyberdata-template.lua b/config/templates/cyberdata-template.lua
index e05bdd9..515cceb 100644
--- a/config/templates/cyberdata-template.lua
+++ b/config/templates/cyberdata-template.lua
@@ -1,8 +1,11 @@
+<?xml version="1.0" standalone="yes"?>
+
<%
-- CyberData Intercom Configuration File Template
local values = ...
-require 'LuaXml'
+xml = require("LuaXml")
+
local init_cfg = xml.load("/var/www/provisioning/htdocs/CyberData/init.cfg")
-- <IPSettings>
@@ -32,6 +35,5 @@ init_cfg[3]:append("NTPTimezone")[1] = values.device.timezone
-- init_cfg:save("TEST-cyberdata.xml")
-print("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n")
print(init_cfg)
%>