From bb3ace78f4ac0cfe66e3e1b9d39c03622470fb38 Mon Sep 17 00:00:00 2001 From: tteckster Date: Tue, 11 Oct 2022 07:22:09 -0400 Subject: [PATCH] Update uptimekuma-update.sh --- misc/uptimekuma-update.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/misc/uptimekuma-update.sh b/misc/uptimekuma-update.sh index 70e77dcb..bee3f2de 100644 --- a/misc/uptimekuma-update.sh +++ b/misc/uptimekuma-update.sh @@ -53,13 +53,14 @@ msg_ok "Stopped ${APP}" cd /opt/uptime-kuma msg_info "Pulling ${APP} ${LATEST}" -git fetch &>/dev/null -git checkout $LATEST &>/dev/null +git fetch --all &>/dev/null +git checkout $LATEST --force &>/dev/null git pull &>/dev/null msg_ok "Pulled ${APP} ${LATEST}" -msg_info "Updating ${APP} to ${LATEST} (Patience)" -npm ci &>/dev/null +msg_info "Updating ${APP} to ${LATEST}" +npm install --production &>/dev/null +npm run download-dist &>/dev/null msg_ok "Updated ${APP}" msg_info "Starting ${APP}"