mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-11-22 08:57:00 -06:00
SDA-3800 - Ignore config copy issue for global installed SDA (#1470)
This commit is contained in:
parent
c36c71d6e0
commit
becc778c1f
@ -610,10 +610,17 @@ class Config {
|
|||||||
* Overwrites the global config file with the backed up config file
|
* Overwrites the global config file with the backed up config file
|
||||||
*/
|
*/
|
||||||
public copyGlobalConfig() {
|
public copyGlobalConfig() {
|
||||||
|
try {
|
||||||
if (fs.existsSync(this.tempGlobalConfigFilePath)) {
|
if (fs.existsSync(this.tempGlobalConfigFilePath)) {
|
||||||
fs.copyFileSync(this.tempGlobalConfigFilePath, this.globalConfigPath);
|
fs.copyFileSync(this.tempGlobalConfigFilePath, this.globalConfigPath);
|
||||||
fs.unlinkSync(this.tempGlobalConfigFilePath);
|
fs.unlinkSync(this.tempGlobalConfigFilePath);
|
||||||
}
|
}
|
||||||
|
} catch (e) {
|
||||||
|
logger.error(
|
||||||
|
`config-handler: unable to backup global config file error: `,
|
||||||
|
e,
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user