diff --git a/CHANGELOG.md b/CHANGELOG.md index ae188d0b..f423a1a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -71,6 +71,7 @@ Special thanks to @khassel, @rejas and @sdetweil for taking over most (if not al - Update Eslint config, add new rule and handle issue - Convert lots of callbacks to async/await - Revise require imports (#3071 and #3072) +- Use `config.js-old` instead of file with timestamp suffix when backing up config with a `config.template` in use (#3104) ### Fixed diff --git a/js/app.js b/js/app.js index fa0fb71a..80ec75d2 100644 --- a/js/app.js +++ b/js/app.js @@ -76,7 +76,7 @@ function App() { // save current config.js try { if (fs.existsSync(configFilename)) { - fs.copyFileSync(configFilename, `${configFilename}_${Date.now()}`); + fs.copyFileSync(configFilename, `${configFilename}-old`); } } catch (err) { Log.warn(`Could not copy ${configFilename}: ${err.message}`);