clavarium 0.2.420-next.1 → 0.2.421-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/server/tools.mjs +6 -4
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.421-next.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "clavarium",
|
|
9
|
-
"version": "0.2.
|
|
9
|
+
"version": "0.2.421-next.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
package/package.json
CHANGED
package/server/tools.mjs
CHANGED
|
@@ -18,14 +18,16 @@ const ARCHIVE = `node-${NODE_VERSION}-linux-x64.tar.xz`;
|
|
|
18
18
|
const TMP = `/tmp/${ARCHIVE}`;
|
|
19
19
|
const APT = ['sudo', '-n', 'env', 'DEBIAN_FRONTEND=noninteractive', 'apt-get'];
|
|
20
20
|
|
|
21
|
-
/* A step is { argv, input? }: `input` goes to standard input.
|
|
21
|
+
/* A step is { argv, input? }: `input` goes to standard input. Every one as root (sudo): in a shared machine a
|
|
22
|
+
step without sudo runs as the conversation's own user, behind its door, with its own /tmp -- the archive
|
|
23
|
+
fetched there would not be the one root unpacks (#221, 13-11: "tar: Error is not recoverable"). */
|
|
22
24
|
export const NODE_STEPS = [
|
|
23
25
|
{ argv: [...APT, 'update', '-q'] },
|
|
24
26
|
{ argv: [...APT, 'install', '-y', '-q', '--no-install-recommends', 'curl', 'xz-utils', 'ca-certificates'] },
|
|
25
|
-
{ argv: ['curl', '--proto', '=https', '--tlsv1.2', '-fsSL', '--max-time', '600', '-o', TMP, `https://nodejs.org/dist/${NODE_VERSION}/${ARCHIVE}`] },
|
|
26
|
-
{ argv: ['sha256sum', '-c', '-'], input: `${NODE_SHA256} ${TMP}\n` },
|
|
27
|
+
{ argv: ['sudo', '-n', 'curl', '--proto', '=https', '--tlsv1.2', '-fsSL', '--max-time', '600', '-o', TMP, `https://nodejs.org/dist/${NODE_VERSION}/${ARCHIVE}`] },
|
|
28
|
+
{ argv: ['sudo', '-n', 'sha256sum', '-c', '-'], input: `${NODE_SHA256} ${TMP}\n` },
|
|
27
29
|
{ argv: ['sudo', '-n', 'tar', '-xJf', TMP, '-C', '/usr/local', '--strip-components=1', '--no-same-owner'] },
|
|
28
|
-
{ argv: ['rm', '-f', TMP] },
|
|
30
|
+
{ argv: ['sudo', '-n', 'rm', '-f', TMP] },
|
|
29
31
|
];
|
|
30
32
|
|
|
31
33
|
/* "npm-writable": what npm installs globally becomes the machine user's, so
|