summaryrefslogtreecommitdiffstats
path: root/config/templates/grandstream-template.lua
diff options
context:
space:
mode:
Diffstat (limited to 'config/templates/grandstream-template.lua')
-rw-r--r--config/templates/grandstream-template.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/config/templates/grandstream-template.lua b/config/templates/grandstream-template.lua
index cf1e95e..f6957ff 100644
--- a/config/templates/grandstream-template.lua
+++ b/config/templates/grandstream-template.lua
@@ -1,8 +1,11 @@
+<?xml version="1.0" standalone="yes"?>
+
<%
-- Grandstream Configuration File Template
local values = ...
-require 'LuaXml'
+xml = require("LuaXml")
+
local init_cfg = xml.load("/var/www/provisioning/htdocs/Grandstream/init.cfg")
-- <config>
@@ -32,8 +35,5 @@ for pg, pg_t in pairs(values) do
end
end
--- init_cfg:save("TEST-grandstream.xml")
-
-print("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n")
print(init_cfg)
%>