save config on upgrade token

This commit is contained in:
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);