diff --git a/install/nametag-install.sh b/install/nametag-install.sh index 66a5462f..ec730b7b 100644 --- a/install/nametag-install.sh +++ b/install/nametag-install.sh @@ -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" diff --git a/install/openthread-br-install.sh b/install/openthread-br-install.sh index 50f101ea..d1696e30 100644 --- a/install/openthread-br-install.sh +++ b/install/openthread-br-install.sh @@ -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 </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 diff --git a/install/transmute-install.sh b/install/transmute-install.sh index 3d1ba2c6..e04621ea 100644 --- a/install/transmute-install.sh +++ b/install/transmute-install.sh @@ -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"