forked from metin2/server
Configuration files are automatically generated based on env variables in the Docker image
This commit is contained in:
@ -46,7 +46,7 @@ Mysql-Funktion der neuesten Generation.
|
||||
--]]
|
||||
mysql_query = function(query)
|
||||
if not pre then
|
||||
local rt = io.open('CONFIG','r'):read('*all')
|
||||
local rt = io.open('game.conf','r'):read('*all')
|
||||
pre,_= string.gsub(rt,'.+PLAYER_SQL:%s(%S+)%s(%S+)%s(%S+)%s(%S+).+','-h%1 -u%2 -p%3 -D%4')
|
||||
end
|
||||
math.randomseed(os.time())
|
||||
|
Reference in New Issue
Block a user