From 4ead590cf46585069d6b71ec34ebdb4c062cdc70 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Thu, 26 Sep 2024 13:06:07 +0200 Subject: [PATCH] Tweak for Tianji Update Script (#3794) --- ct/tianji.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ct/tianji.sh b/ct/tianji.sh index f22eaddb..c58e739d 100644 --- a/ct/tianji.sh +++ b/ct/tianji.sh @@ -68,7 +68,8 @@ if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_v msg_info "Updating ${APP} to ${RELEASE}" cd /opt/tianji - git checkout -q v${RELEASE} + git checkout -f -q v${RELEASE} + cd src/server pnpm db:migrate:apply >/dev/null 2>&1 echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated ${APP} to ${RELEASE}"