13 lines
444 B
JavaScript
13 lines
444 B
JavaScript
const { RemoteTerminal } = require('./remote_exec');
|
|
|
|
async function main() {
|
|
const term = new RemoteTerminal('wss://soc-gateway-28cd1dc4e034.hosted.ghaymah.systems/ws');
|
|
await term.connect();
|
|
console.log('Installing nodejs on soc-gateway...');
|
|
const res = await term.exec('rm -f /var/lock/apk; apk add --no-progress nodejs && node -v', 90000);
|
|
console.log('Result:\n', res.output);
|
|
process.exit(0);
|
|
}
|
|
|
|
main().catch(console.error);
|