mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
enhance: use risefront.restart()
This commit is contained in:
parent
ac9413703f
commit
6de8e44cd6
1 changed files with 3 additions and 5 deletions
|
@ -7,12 +7,12 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
|
|
||||||
|
"code.pfad.fr/risefront"
|
||||||
_github "github.com/0xJacky/Nginx-UI/.github"
|
_github "github.com/0xJacky/Nginx-UI/.github"
|
||||||
"github.com/0xJacky/Nginx-UI/internal/helper"
|
"github.com/0xJacky/Nginx-UI/internal/helper"
|
||||||
"github.com/0xJacky/Nginx-UI/internal/version"
|
"github.com/0xJacky/Nginx-UI/internal/version"
|
||||||
|
@ -269,8 +269,6 @@ func (u *Upgrader) PerformCoreUpgrade(tarPath string) (err error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// gracefully restart
|
// gracefully restart
|
||||||
cmd := exec.Command(os.Args[0])
|
risefront.Restart()
|
||||||
cmd.Stdout = os.Stdout
|
return
|
||||||
cmd.Stderr = os.Stderr
|
|
||||||
return cmd.Start()
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue