From e037ecfa8cc0133a84fbed791b7658c474c3e748 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Tue, 7 Oct 2025 15:51:43 +0300 Subject: Add hommabot jail --- templates/hommabot/root_hommabot_deps.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 templates/hommabot/root_hommabot_deps.sh (limited to 'templates/hommabot/root_hommabot_deps.sh') diff --git a/templates/hommabot/root_hommabot_deps.sh b/templates/hommabot/root_hommabot_deps.sh new file mode 100644 index 0000000..25c0e56 --- /dev/null +++ b/templates/hommabot/root_hommabot_deps.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +set -eux +cd /root/hommabot +npm ci + +# We need to build the better-sqlite3.node file before running the app +if [ ! -f build/better_sqlite3.node ]; then ( + mkdir -p build + cd node_modules/better-sqlite3 + npm run build-release + cp build/Release/better_sqlite3.node ../../build/better_sqlite3.node +) +fi -- cgit v1.3