mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 18:35:51 +02:00
feat: use risefront
to replace overseer
in order to supports Windows
This commit is contained in:
parent
cf531e3f09
commit
bfba7ba2c2
2 changed files with 36 additions and 21 deletions
|
@ -7,6 +7,7 @@ import (
|
|||
"net/http"
|
||||
"net/url"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
@ -16,7 +17,6 @@ import (
|
|||
"github.com/0xJacky/Nginx-UI/internal/helper"
|
||||
"github.com/0xJacky/Nginx-UI/internal/version"
|
||||
"github.com/0xJacky/Nginx-UI/settings"
|
||||
"github.com/jpillora/overseer"
|
||||
"github.com/minio/selfupdate"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/uozi-tech/cosy/logger"
|
||||
|
@ -269,7 +269,6 @@ func (u *Upgrader) PerformCoreUpgrade(tarPath string) (err error) {
|
|||
}
|
||||
|
||||
// gracefully restart
|
||||
overseer.Restart()
|
||||
|
||||
return
|
||||
cmd := exec.Command(os.Args[0])
|
||||
return cmd.Start()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue