From fce8e366c6537ad9da80bcbfb58f60028b1583d1 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 29 Jun 2018 04:33:22 -0600 Subject: [PATCH] save config on upgrade token --- bin/telebitd.js | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/telebitd.js b/bin/telebitd.js index 85876e6..0e62244 100755 --- a/bin/telebitd.js +++ b/bin/telebitd.js @@ -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);