mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
fix(upgrader): remove test binary during commit restart process
This commit is contained in:
parent
32fdc627bc
commit
f04e02cd25
1 changed files with 2 additions and 1 deletions
|
@ -87,11 +87,12 @@ func (u *Upgrader) TestCommitAndRestart() error {
|
|||
|
||||
if runtime.GOOS != "windows" {
|
||||
_ = os.Remove(oldExe)
|
||||
_ = os.Remove(testBinaryPath)
|
||||
}
|
||||
|
||||
// Wait for file to be written
|
||||
time.Sleep(1 * time.Second)
|
||||
|
||||
|
||||
// Gracefully restart
|
||||
risefront.Restart()
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue