SDA-3800 - Ignore config copy issue for global installed SDA (#1470)

This commit is contained in:
Kiran Niranjan 2022-08-10 14:24:46 +05:30 committed by GitHub
parent c36c71d6e0
commit becc778c1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -610,10 +610,17 @@ class Config {
* Overwrites the global config file with the backed up config file
*/
public copyGlobalConfig() {
try {
if (fs.existsSync(this.tempGlobalConfigFilePath)) {
fs.copyFileSync(this.tempGlobalConfigFilePath, this.globalConfigPath);
fs.unlinkSync(this.tempGlobalConfigFilePath);
}
} catch (e) {
logger.error(
`config-handler: unable to backup global config file error: `,
e,
);
}
}
/**