fix: [updater] preserve "uninstaller.exe" during upgrade + purged obsolete config of "ignore" files from binary index
This commit is contained in:
@@ -119,8 +119,8 @@ func MakeUpdateConfigs(svcCfg *ServiceConfig) (binaryUpdateConfig, intelUpdateCo
|
|||||||
Directory: svcCfg.BinDir,
|
Directory: svcCfg.BinDir,
|
||||||
DownloadDirectory: filepath.Join(svcCfg.DataDir, "download_binaries"),
|
DownloadDirectory: filepath.Join(svcCfg.DataDir, "download_binaries"),
|
||||||
PurgeDirectory: filepath.Join(svcCfg.BinDir, "upgrade_obsolete_binaries"),
|
PurgeDirectory: filepath.Join(svcCfg.BinDir, "upgrade_obsolete_binaries"),
|
||||||
Ignore: []string{"databases", "intel", "config.json"},
|
Ignore: []string{"uninstall.exe"}, // "databases", "intel" and "config.json" not needed here since they are not in the bin dir.
|
||||||
IndexURLs: svcCfg.BinariesIndexURLs, // May be changed by config during instance startup.
|
IndexURLs: svcCfg.BinariesIndexURLs, // May be changed by config during instance startup.
|
||||||
IndexFile: "index.json",
|
IndexFile: "index.json",
|
||||||
Verify: svcCfg.VerifyBinaryUpdates,
|
Verify: svcCfg.VerifyBinaryUpdates,
|
||||||
AutoCheck: true, // May be changed by config during instance startup.
|
AutoCheck: true, // May be changed by config during instance startup.
|
||||||
@@ -150,7 +150,7 @@ func MakeUpdateConfigs(svcCfg *ServiceConfig) (binaryUpdateConfig, intelUpdateCo
|
|||||||
Directory: svcCfg.BinDir,
|
Directory: svcCfg.BinDir,
|
||||||
DownloadDirectory: filepath.Join(svcCfg.DataDir, "download_binaries"),
|
DownloadDirectory: filepath.Join(svcCfg.DataDir, "download_binaries"),
|
||||||
PurgeDirectory: filepath.Join(svcCfg.DataDir, "upgrade_obsolete_binaries"),
|
PurgeDirectory: filepath.Join(svcCfg.DataDir, "upgrade_obsolete_binaries"),
|
||||||
Ignore: []string{"databases", "intel", "config.json"},
|
Ignore: []string{}, // "databases", "intel" and "config.json" not needed here since they are not in the bin dir.
|
||||||
IndexURLs: svcCfg.BinariesIndexURLs, // May be changed by config during instance startup.
|
IndexURLs: svcCfg.BinariesIndexURLs, // May be changed by config during instance startup.
|
||||||
IndexFile: "index.json",
|
IndexFile: "index.json",
|
||||||
Verify: svcCfg.VerifyBinaryUpdates,
|
Verify: svcCfg.VerifyBinaryUpdates,
|
||||||
|
|||||||
Reference in New Issue
Block a user