mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Fix path to Nginx executable in configuration check
This commit is contained in:
parent
3c827e2eed
commit
d4caf6ac14
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ api.global.POST["^/reload"] = function(self)
|
|||
if test_arg ~= "no" then
|
||||
-- Check Nginx configuration
|
||||
logger:log(NOTICE, "Checking Nginx configuration")
|
||||
local status = execute("nginx -t")
|
||||
local status = execute("/usr/sbin/nginx -t")
|
||||
if status ~= 0 then
|
||||
return self:response(HTTP_INTERNAL_SERVER_ERROR, "error", "config check failed")
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue