forked from github/server
91ec503b43
1. move xml configuration reading to a separate module, it's compliated. 2. move the map file to the main scripts folder.
8 lines
228 B
Lua
8 lines
228 B
Lua
local confdir = 'conf/'
|
|
if config.rules then
|
|
confdir = confdir .. config.rules .. '/'
|
|
end
|
|
if config.install then
|
|
confdir = config.install .. '/' .. confdir
|
|
end
|
|
read_xml(confdir .. 'config.xml', confdir .. 'catalog.xml')
|