Fix path to Nginx executable in configuration check

This commit is contained in:
Théophile Diot 2024-12-30 19:19:39 +00:00
parent 3c827e2eed
commit d4caf6ac14
No known key found for this signature in database
GPG key ID: FA995104A0BA376A

View file

@ -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