Browse Source

save config on upgrade token

pull/8/head
AJ ONeal 6 years ago
parent
commit
fce8e366c6
  1. 1
      bin/telebitd.js

1
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);

Loading…
Cancel
Save