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:
@@ -21,7 +21,7 @@ fetch_and_deploy_gh_release "nametag" "mattogodoy/nametag" "tarball" "latest" "/
|
|||||||
msg_info "Setting up Application"
|
msg_info "Setting up Application"
|
||||||
cd /opt/nametag
|
cd /opt/nametag
|
||||||
$STD npm ci
|
$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
|
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"
|
msg_ok "Set up Application"
|
||||||
|
|
||||||
|
|||||||
@@ -33,11 +33,11 @@ $STD apt install -y \
|
|||||||
libnetfilter-queue1 \
|
libnetfilter-queue1 \
|
||||||
libnetfilter-queue-dev \
|
libnetfilter-queue-dev \
|
||||||
libprotobuf-dev \
|
libprotobuf-dev \
|
||||||
protobuf-compiler
|
protobuf-compiler \
|
||||||
|
nodejs \
|
||||||
|
npm
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
NODE_VERSION="20" setup_nodejs
|
|
||||||
|
|
||||||
msg_info "Cloning OpenThread Border Router"
|
msg_info "Cloning OpenThread Border Router"
|
||||||
$STD git clone --depth 1 https://github.com/openthread/ot-br-posix /opt/ot-br-posix
|
$STD git clone --depth 1 https://github.com/openthread/ot-br-posix /opt/ot-br-posix
|
||||||
cd /opt/ot-br-posix
|
cd /opt/ot-br-posix
|
||||||
@@ -74,8 +74,7 @@ msg_info "Configuring Services"
|
|||||||
cat <<EOF >/etc/default/otbr-agent
|
cat <<EOF >/etc/default/otbr-agent
|
||||||
OTBR_AGENT_OPTS="-I wpan0 -B eth0 spinel+hdlc+uart:///dev/ttyACM0"
|
OTBR_AGENT_OPTS="-I wpan0 -B eth0 spinel+hdlc+uart:///dev/ttyACM0"
|
||||||
EOF
|
EOF
|
||||||
systemctl enable -q --now otbr-agent
|
systemctl enable -q --now otbr-agent otbr-web
|
||||||
systemctl enable -q otbr-web
|
|
||||||
msg_ok "Configured Services"
|
msg_ok "Configured Services"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
|
|||||||
@@ -48,14 +48,8 @@ chmod +x /usr/local/bin/pandoc
|
|||||||
rm -rf /tmp/pandoc*
|
rm -rf /tmp/pandoc*
|
||||||
msg_ok "Installed Pandoc"
|
msg_ok "Installed Pandoc"
|
||||||
|
|
||||||
msg_info "Installing Calibre"
|
fetch_and_deploy_gh_release "calibre" "kovidgoyal/calibre" "prebuild" "latest" "/opt/calibre" "calibre-*-x86_64.txz"
|
||||||
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
|
|
||||||
ln -sf /opt/calibre/ebook-convert /usr/bin/ebook-convert
|
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"
|
fetch_and_deploy_gh_release "transmute" "transmute-app/transmute" "tarball" "latest" "/opt/transmute"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user