1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-14 15:23:39 +00:00

First revision of Agent Self Update documentation, describing self update architecture and testing procedure..

Also updated update-test to only validate recoverycore, when JS is specified.
This commit is contained in:
Bryan Roe
2022-07-05 23:24:33 -07:00
parent 6409183e72
commit ab66cf445e
9 changed files with 149 additions and 2 deletions

View File

@@ -122,13 +122,14 @@ if (process.argv.getParameter('help') != null)
process.exit();
}
if (!require('fs').existsSync(recoverycorePath))
if (process.argv.getParameter('JS') != null && !require('fs').existsSync(recoverycorePath))
{
console.log(recoverycorePath + ' cannot be found.');
console.log('Please either copy recoverycore.js, or specify the location using --RecoveryCore');
process.exit();
}
const recoveryCore = require('fs').readFileSync(recoverycorePath);
const recoveryCore = process.argv.getParameter('JS') == null ? null : require('fs').readFileSync(recoverycorePath);
process.stdout.write('Generating Certificate...');