diff --git a/internal/upgrader/upgrade.go b/internal/upgrader/upgrade.go index 55bbdb62..19bb73e9 100644 --- a/internal/upgrader/upgrade.go +++ b/internal/upgrader/upgrade.go @@ -11,6 +11,7 @@ import ( "strconv" "strings" "sync/atomic" + "time" "code.pfad.fr/risefront" _github "github.com/0xJacky/Nginx-UI/.github" @@ -273,6 +274,9 @@ func (u *Upgrader) PerformCoreUpgrade(tarPath string) (err error) { return err } + // wait for the file to be written + time.Sleep(1 * time.Second) + // gracefully restart risefront.Restart() return