Skip to content

Commit fcdf5a5

Browse files
committed
do not install nsjail by default, since we might not even use it at all
- clearly podman is vastly superior these days
1 parent 65e33be commit fcdf5a5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/packages/backend/sandbox/install.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ const SPEC = {
8888
pathInArchive: "rustic",
8989
},
9090
nsjail: {
91+
optional: true,
9192
nonFatal: true,
9293
platforms: ["linux"],
9394
VERSION: NSJAIL_VERSION,
@@ -126,7 +127,11 @@ async function alreadyInstalled(app: App) {
126127
export async function install(app?: App) {
127128
if (app == null) {
128129
// @ts-ignore
129-
await Promise.all(Object.keys(SPEC).map(install));
130+
await Promise.all(
131+
Object.keys(SPEC)
132+
.filter((x) => !SPEC[x].optional)
133+
.map(install as any),
134+
);
130135
return;
131136
}
132137

0 commit comments

Comments
 (0)