Fix Transmute Calibre 404, Nametag prisma env, OTBR drop setup_nodejs

- Transmute: replace manual curl with fetch_and_deploy_gh_release prebuild
- Nametag: pass DATABASE_URL to prisma generate (config needs it at load time)
- OTBR: use apt nodejs/npm instead of setup_nodejs (only needed for cmake web build)
This commit is contained in:
CanbiZ (MickLesk)
2026-03-30 11:32:01 +02:00
parent 4858dae113
commit 8cfbde0228
3 changed files with 6 additions and 13 deletions

View File

@@ -21,7 +21,7 @@ fetch_and_deploy_gh_release "nametag" "mattogodoy/nametag" "tarball" "latest" "/
msg_info "Setting up Application"
cd /opt/nametag
$STD npm ci
$STD npx prisma generate
DATABASE_URL="postgresql://${PG_DB_USER}:${PG_DB_PASS}@127.0.0.1:5432/${PG_DB_NAME}" $STD npx prisma generate
DATABASE_URL="postgresql://${PG_DB_USER}:${PG_DB_PASS}@127.0.0.1:5432/${PG_DB_NAME}" $STD npx prisma migrate deploy
msg_ok "Set up Application"

View File

@@ -33,11 +33,11 @@ $STD apt install -y \
libnetfilter-queue1 \
libnetfilter-queue-dev \
libprotobuf-dev \
protobuf-compiler
protobuf-compiler \
nodejs \
npm
msg_ok "Installed Dependencies"
NODE_VERSION="20" setup_nodejs
msg_info "Cloning OpenThread Border Router"
$STD git clone --depth 1 https://github.com/openthread/ot-br-posix /opt/ot-br-posix
cd /opt/ot-br-posix
@@ -74,8 +74,7 @@ msg_info "Configuring Services"
cat <<EOF >/etc/default/otbr-agent
OTBR_AGENT_OPTS="-I wpan0 -B eth0 spinel+hdlc+uart:///dev/ttyACM0"
EOF
systemctl enable -q --now otbr-agent
systemctl enable -q otbr-web
systemctl enable -q --now otbr-agent otbr-web
msg_ok "Configured Services"
motd_ssh

View File

@@ -48,14 +48,8 @@ chmod +x /usr/local/bin/pandoc
rm -rf /tmp/pandoc*
msg_ok "Installed Pandoc"
msg_info "Installing Calibre"
CALIBRE_VERSION=$(get_latest_github_release "kovidgoyal/calibre")
curl -fsSL "https://github.com/kovidgoyal/calibre/releases/download/${CALIBRE_VERSION}/calibre-${CALIBRE_VERSION#v}-x86_64.txz" -o /tmp/calibre.txz
mkdir -p /opt/calibre
tar -xJf /tmp/calibre.txz -C /opt/calibre
fetch_and_deploy_gh_release "calibre" "kovidgoyal/calibre" "prebuild" "latest" "/opt/calibre" "calibre-*-x86_64.txz"
ln -sf /opt/calibre/ebook-convert /usr/bin/ebook-convert
rm -f /tmp/calibre.txz
msg_ok "Installed Calibre"
fetch_and_deploy_gh_release "transmute" "transmute-app/transmute" "tarball" "latest" "/opt/transmute"