Update uptimekuma-update.sh

pull/647/head
tteckster 2022-10-11 07:22:09 -04:00 committed by GitHub
parent 9adfd34f3a
commit bb3ace78f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -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}"