Skip to content

Commit 924d15b

Browse files
authored
little fixes
1 parent 063fab9 commit 924d15b

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

ct/documenso.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,23 @@ function update_script() {
2727
msg_error "No ${APP} Installation Found!"
2828
exit
2929
fi
30-
RELEASE=$(curl -s https://api.github.com/repos/documenso/documenso/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
30+
RELEASE=$(curl -fsSL https://api.github.com/repos/documenso/documenso/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
3131
if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then
32-
whiptail --backtitle "Proxmox VE Helper Scripts" --msgbox --title "SET RESOURCES" "Please set the resources in your ${APP} LXC to ${var_cpu}vCPU and ${var_ram}RAM for the build process before continuing" 10 75
3332
msg_info "Stopping ${APP}"
3433
systemctl stop documenso
3534
msg_ok "${APP} Stopped"
3635

3736
msg_info "Updating ${APP} to ${RELEASE}"
3837
cp /opt/documenso/.env /opt/
39-
rm -R /opt/documenso
38+
rm -rf /opt/documenso
4039
curl -fsSL "https://github.com/documenso/documenso/archive/refs/tags/v${RELEASE}.zip" -o v${RELEASE}.zip
4140
unzip -q v${RELEASE}.zip
4241
mv documenso-${RELEASE} /opt/documenso
4342
cd /opt/documenso
4443
mv /opt/.env /opt/documenso/.env
45-
npm install &>/dev/null
46-
npm run build:web &>/dev/null
47-
npm run prisma:migrate-deploy &>/dev/null
44+
$STD npm install
45+
$STD npm run build:web
46+
$STD npm run prisma:migrate-deploy
4847
echo "${RELEASE}" >/opt/${APP}_version.txt
4948
msg_ok "Updated ${APP}"
5049

0 commit comments

Comments
 (0)