Skip to content

Commit

Permalink
更新ngx的api.......
Browse files Browse the repository at this point in the history
  • Loading branch information
starjun committed Apr 18, 2017
1 parent ab72e3e commit a6c6623
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/nginx.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ local _code = "ok"
if _action == "reload" then
local comm = ngx_path.."sbin/nginx -s reload"
local re = os.execute(comm)
if re ~= 0 then
if not re then
_code = "error"
end
optl.sayHtml_ext({code=_code,msg=re,action=_action})
else
local comm = ngx_path.."sbin/nginx -t"
local re = os.execute(comm)
if re ~= 0 then
if not re then
_code = "error"
end
--local t = io.popen("ls -a")
Expand Down

0 comments on commit a6c6623

Please sign in to comment.