save config on upgrade token

这个提交包含在:
AJ ONeal 2018-06-29 04:33:22 -06:00
父节点 9441bf7f8e
当前提交 fce8e366c6
共有 1 个文件被更改,包括 1 次插入0 次删除

查看文件

@ -664,6 +664,7 @@ state.handlers = {
console.info("Updating '" + tokenpath + "' with new token:");
try {
require('fs').writeFileSync(tokenpath, opts.jwt);
fs.writeFileSync(confpath, YAML.safeDump(snakeCopy(state.config)));
} catch (e) {
console.error("Token not saved:");
console.error(e);