Skip to content

Commit

Permalink
core: fix node upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Mar 29, 2024
1 parent a00ae60 commit 62b07ea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugins/core/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@scrypted/core",
"version": "0.3.18",
"version": "0.3.19",
"description": "Scrypted Core plugin. Provides the UI, websocket, and engine.io APIs.",
"author": "Scrypted",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion plugins/core/src/platform/lxc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export async function checkLxcDependencies() {

let needRestart = false;
if (!process.version.startsWith('v20.')) {
const cp = child_process.spawn('sh', ['-c', 'curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt install -y nodejs']);
const cp = child_process.spawn('sh', ['-c', 'apt update -y && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt install -y nodejs']);
const [exitCode] = await once(cp, 'exit');
if (exitCode !== 0)
sdk.log.a('Failed to install Node.js 20.x.');
Expand Down

0 comments on commit 62b07ea

Please sign in to comment.