mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 02:12:49 +00:00 
			
		
		
		
	Update jellyseerr.sh
add update path
This commit is contained in:
		@@ -53,7 +53,21 @@ function default_settings() {
 | 
			
		||||
function update_script() {
 | 
			
		||||
header_info
 | 
			
		||||
if [[ ! -d /opt/jellyseerr ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
 | 
			
		||||
msg_error "There is currently no update path available."
 | 
			
		||||
msg_info "Updating $APP"
 | 
			
		||||
systemctl stop jellyseerr
 | 
			
		||||
cd /opt/jellyseerr
 | 
			
		||||
output=$(git pull)
 | 
			
		||||
git pull &>/dev/null
 | 
			
		||||
if echo "$output" | grep -q "Already up to date."
 | 
			
		||||
then
 | 
			
		||||
  msg_info " $APP is already up to date."
 | 
			
		||||
  systemctl start jellyseerr
 | 
			
		||||
  exit
 | 
			
		||||
fi
 | 
			
		||||
yarn install &>/dev/null
 | 
			
		||||
yarn build &>/dev/null
 | 
			
		||||
systemctl start jellyseerr
 | 
			
		||||
msg_ok "Updated $APP"
 | 
			
		||||
exit
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user