mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Replace /usr/sbin/nginx with nginx
This commit is contained in:
parent
db35e575e3
commit
c0efdf9c00
2 changed files with 3 additions and 3 deletions
|
|
@ -19,7 +19,7 @@ api.global.GET["^/ping$"] = function(api)
|
|||
end
|
||||
|
||||
api.global.POST["^/reload$"] = function(api)
|
||||
local status = os.execute("/usr/sbin/nginx -s reload")
|
||||
local status = os.execute("nginx -s reload")
|
||||
if status == 0 then
|
||||
return api:response(ngx.HTTP_OK, "success", "reload successful")
|
||||
end
|
||||
|
|
@ -27,7 +27,7 @@ api.global.POST["^/reload$"] = function(api)
|
|||
end
|
||||
|
||||
api.global.POST["^/stop$"] = function(api)
|
||||
local status = os.execute("/usr/sbin/nginx -s quit")
|
||||
local status = os.execute("nginx -s quit")
|
||||
if status == 0 then
|
||||
return api:response(ngx.HTTP_OK, "success", "stop successful")
|
||||
end
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ log "ENTRYPOINT" "ℹ️" "Starting BunkerWeb v$(cat /usr/share/bunkerweb/VERSIO
|
|||
function trap_exit() {
|
||||
log "ENTRYPOINT" "ℹ️" "Catched stop operation"
|
||||
log "ENTRYPOINT" "ℹ️" "Stopping nginx ..."
|
||||
/usr/sbin/nginx -s stop
|
||||
nginx -s stop
|
||||
}
|
||||
trap "trap_exit" TERM INT QUIT
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue