@@ -36,7 +36,8 @@ function update_script() {
3636 msg_info " Stopping ${APP} Service"
3737 systemctl stop tianji
3838 msg_ok " Stopped ${APP} Service"
39- msg_info " Updating ${APP} to ${RELEASE} "
39+
40+ msg_info " Updating ${APP} to v${RELEASE} "
4041 cd /opt
4142 cp /opt/tianji/src/server/.env /opt/.env
4243 mv /opt/tianji /opt/tianji_bak
@@ -54,10 +55,12 @@ function update_script() {
5455 cd src/server
5556 pnpm db:migrate:apply > /dev/null 2>&1
5657 echo " ${RELEASE} " > /opt/${APP} _version.txt
57- msg_ok " Updated ${APP} to ${RELEASE} "
58+ msg_ok " Updated ${APP} to v${RELEASE} "
59+
5860 msg_info " Starting ${APP} "
5961 systemctl start tianji
6062 msg_ok " Started ${APP} "
63+
6164 msg_info " Cleaning up"
6265 rm -R /opt/v${RELEASE} .zip
6366 rm -rf /opt/tianji_bak
@@ -67,7 +70,7 @@ function update_script() {
6770 msg_ok " Cleaned"
6871 msg_ok " Updated Successfully"
6972 else
70- msg_ok " No update required. ${APP} is already at ${RELEASE} ."
73+ msg_ok " No update required. ${APP} is already at v ${RELEASE} ."
7174 fi
7275 exit
7376}
@@ -79,4 +82,4 @@ description
7982msg_ok " Completed Successfully!\n"
8083echo -e " ${CREATING}${GN}${APP} setup has been successfully initialized!${CL} "
8184echo -e " ${INFO}${YW} Access it using the following URL:${CL} "
82- echo -e " ${TAB}${GATEWAY}${BGN} http://${IP} :12345${CL} "
85+ echo -e " ${TAB}${GATEWAY}${BGN} http://${IP} :12345${CL} "
0 commit comments