mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-05-02 22:12:53 +03:00
Merge: * auto-update: use backup directory format without version: "agh-backup"
Close #801
* commit '885b660808
':
* auto-update: refactor test; test getUpdateInfo()
* auto-update: use backup directory format without version: "agh-backup"
This commit is contained in:
commit
b45e8e80fb
2 changed files with 50 additions and 13 deletions
|
@ -164,7 +164,7 @@ func getUpdateInfo(jsonData []byte) (*updateInfo, error) {
|
|||
}
|
||||
|
||||
u.updateDir = filepath.Join(workDir, fmt.Sprintf("agh-update-%s", u.newVer))
|
||||
u.backupDir = filepath.Join(workDir, fmt.Sprintf("agh-backup-%s", versionString))
|
||||
u.backupDir = filepath.Join(workDir, "agh-backup")
|
||||
|
||||
_, pkgFileName := filepath.Split(u.pkgURL)
|
||||
if len(pkgFileName) == 0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue