From f911a335acbe9b014cbe10a208cf156d80f736e4 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Wed, 12 Apr 2023 16:39:53 -0400 Subject: [PATCH] fix(striker-ui-api): add openssl to shell --- striker-ui-api/src/lib/consts/SERVER_PATHS.ts | 1 + striker-ui-api/src/lib/shell.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/striker-ui-api/src/lib/consts/SERVER_PATHS.ts b/striker-ui-api/src/lib/consts/SERVER_PATHS.ts index 132d3015..d24140d6 100644 --- a/striker-ui-api/src/lib/consts/SERVER_PATHS.ts +++ b/striker-ui-api/src/lib/consts/SERVER_PATHS.ts @@ -11,6 +11,7 @@ const EMPTY_SERVER_PATHS: ServerPath = { bin: { date: {}, mkfifo: {}, + openssl: {}, psql: {}, rm: {}, sed: {}, diff --git a/striker-ui-api/src/lib/shell.ts b/striker-ui-api/src/lib/shell.ts index dcd12f2e..36947da1 100644 --- a/striker-ui-api/src/lib/shell.ts +++ b/striker-ui-api/src/lib/shell.ts @@ -35,6 +35,9 @@ export const date = (...args: string[]) => export const mkfifo = (...args: string[]) => systemCall(SERVER_PATHS.usr.bin.mkfifo.self, args); +export const openssl = (...args: string[]) => + systemCall(SERVER_PATHS.usr.bin.openssl.self, args); + export const rm = (...args: string[]) => systemCall(SERVER_PATHS.usr.bin.rm.self, args);