Remove auto-restart from upgrade command, bump to 1.1.1
ExecuteCommand('restart ...') was restarting the whole FXServer
process in this environment instead of just the resource, so
/oixbupgrade now only downloads files and tells the admin to
restart manually.
This commit is contained in:
parent
e50eb7e74c
commit
9cb715fc34
@ -3,7 +3,7 @@ game 'gta5'
|
||||
|
||||
author 'SeuNome'
|
||||
description 'Sistema de safes com ox_inventory e ox_target'
|
||||
version '1.1.0'
|
||||
version '1.1.1'
|
||||
|
||||
-- Dependências
|
||||
dependencies {
|
||||
|
||||
@ -341,10 +341,9 @@ if Config.Debug and Config.Update then
|
||||
pending = pending - 1
|
||||
if pending == 0 then
|
||||
if failed then
|
||||
dbg('Upgrade incompleto — algum arquivo falhou. Resource NÃO foi reiniciado.')
|
||||
dbg('Upgrade incompleto — algum arquivo falhou.')
|
||||
else
|
||||
dbg('Upgrade concluído. Reiniciando resource...')
|
||||
ExecuteCommand('restart '..resourceName)
|
||||
dbg('Upgrade concluído. Reinicie manualmente quando quiser: restart '..resourceName)
|
||||
end
|
||||
end
|
||||
end, 'GET')
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
{
|
||||
"version": "1.1.0"
|
||||
"version": "1.1.1"
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user