mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
fix(upgrader): add restart call for dry run in BinaryUpgrade function
This commit is contained in:
parent
06513abe4c
commit
da780a2adb
1 changed files with 2 additions and 0 deletions
|
@ -3,6 +3,7 @@ package upgrader
|
|||
import (
|
||||
"os"
|
||||
|
||||
"code.pfad.fr/risefront"
|
||||
"github.com/0xJacky/Nginx-UI/settings"
|
||||
"github.com/gorilla/websocket"
|
||||
"github.com/uozi-tech/cosy/logger"
|
||||
|
@ -73,6 +74,7 @@ func BinaryUpgrade(ws *websocket.Conn, control *Control) {
|
|||
})
|
||||
// dry run
|
||||
if control.DryRun || settings.NodeSettings.Demo {
|
||||
risefront.Restart()
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue