save config on upgrade token

Este commit está contenido en:
AJ ONeal 2018-06-29 04:33:22 -06:00
padre 9441bf7f8e
commit fce8e366c6
Se han modificado 1 ficheros con 1 adiciones y 0 borrados

Ver fichero

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