fix(lobehub,otbr): increase heap limit and fix bind9 enable

- lobehub: bump --max-old-space-size from 4096 to 8192 (build OOMs at ~6GB)
- openthread-br: handle linked unit file bind9.service on Debian 13
This commit is contained in:
MickLesk
2026-04-04 22:15:20 +02:00
parent 20fd374b08
commit f344b69617
3 changed files with 4 additions and 3 deletions

View File

@@ -47,7 +47,7 @@ function update_script() {
msg_info "Building Application"
cd /opt/lobehub
export NODE_OPTIONS="--max-old-space-size=4096"
export NODE_OPTIONS="--max-old-space-size=8192"
$STD pnpm install
$STD pnpm run build:docker
unset NODE_OPTIONS

View File

@@ -43,7 +43,7 @@ fetch_and_deploy_gh_release "lobehub" "lobehub/lobehub" "tarball"
msg_info "Building Application"
cd /opt/lobehub
export NODE_OPTIONS="--max-old-space-size=4096"
export NODE_OPTIONS="--max-old-space-size=8192"
export DATABASE_URL="postgres://${PG_DB_USER}:${PG_DB_PASS}@localhost:5432/${PG_DB_NAME}"
export DATABASE_DRIVER="node"
export KEY_VAULTS_SECRET="$(openssl rand -base64 32)"

View File

@@ -77,7 +77,8 @@ cat <<EOF >/etc/default/otbr-agent
# TCP example: spinel+hdlc+uart://192.168.1.100:9999
OTBR_AGENT_OPTS="-I wpan0 -B eth0 spinel+hdlc+uart:///dev/ttyACM0"
EOF
systemctl enable -q dbus rsyslog bind9 otbr-agent otbr-web
systemctl enable -q dbus rsyslog otbr-agent otbr-web
systemctl enable -q bind9 2>/dev/null || systemctl enable -q named 2>/dev/null || true
systemctl start -q dbus rsyslog bind9
msg_ok "Configured Services"