Skip to content
This repository has been archived by the owner on Nov 2, 2024. It is now read-only.

Commit

Permalink
Tweak for Tianji Update Script (#3794)
Browse files Browse the repository at this point in the history
  • Loading branch information
MickLesk authored Sep 26, 2024
1 parent 5f34c2c commit 4ead590
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ct/tianji.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 4ead590

Please sign in to comment.