fix(upgrader): add restart call for dry run in BinaryUpgrade function

This commit is contained in:
Jacky 2025-05-05 03:29:09 +00:00
parent 06513abe4c
commit da780a2adb
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D

View file

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