fix ngx_lua_version bug
修复更换lua-nginx-module版本之后,base.lua中版本不匹配导致启动nginx失败。pull/13/head
parent
a2a66942b3
commit
31070e9351
|
@ -19,9 +19,9 @@ if subsystem == 'http' then
|
||||||
local ngx_lua_v = ngx.config.ngx_lua_version
|
local ngx_lua_v = ngx.config.ngx_lua_version
|
||||||
if not ngx.config
|
if not ngx.config
|
||||||
or not ngx.config.ngx_lua_version
|
or not ngx.config.ngx_lua_version
|
||||||
or (ngx_lua_v ~= 10016 and ngx_lua_v ~= 10017)
|
or (ngx_lua_v ~= 10019 and ngx_lua_v ~= 10020)
|
||||||
then
|
then
|
||||||
error("ngx_http_lua_module 0.10.16 or 0.10.17 required")
|
error("ngx_http_lua_module 0.10.19 or 0.10.20 required")
|
||||||
end
|
end
|
||||||
|
|
||||||
elseif subsystem == 'stream' then
|
elseif subsystem == 'stream' then
|
||||||
|
|
Loading…
Reference in New Issue