mirror of https://github.com/tteck/Proxmox.git
				
				
				
			Tweak for Tianji Update Script
This commit is contained in:
		
							parent
							
								
									5f34c2c7c8
								
							
						
					
					
						commit
						034fa27614
					
				| 
						 | 
					@ -68,7 +68,8 @@ if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_v
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  msg_info "Updating ${APP} to ${RELEASE}"
 | 
					  msg_info "Updating ${APP} to ${RELEASE}"
 | 
				
			||||||
  cd /opt/tianji
 | 
					  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
 | 
					  pnpm db:migrate:apply >/dev/null 2>&1
 | 
				
			||||||
  echo "${RELEASE}" >/opt/${APP}_version.txt
 | 
					  echo "${RELEASE}" >/opt/${APP}_version.txt
 | 
				
			||||||
  msg_ok "Updated ${APP} to ${RELEASE}"
 | 
					  msg_ok "Updated ${APP} to ${RELEASE}"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue