mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
fix(upgrader): correct old executable path handling for non-Windows systems in core upgrade process
This commit is contained in:
parent
40e8d6c40a
commit
73553539ef
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ func (u *Upgrader) PerformCoreUpgrade(tarPath string) (err error) {
|
|||
defer updateInProgress.Store(false)
|
||||
|
||||
oldExe := ""
|
||||
if runtime.GOOS != "windows" {
|
||||
if runtime.GOOS == "windows" {
|
||||
oldExe = filepath.Join(filepath.Dir(u.ExPath), ".nginx-ui.old."+strconv.FormatInt(time.Now().Unix(), 10))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue