mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 10:22:50 +00:00 
			
		
		
		
	checkmk.sh update (#7765)
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							3dfbc2d6ea
						
					
				
				
					commit
					d56c1e2f50
				
			@@ -27,7 +27,7 @@ function update_script() {
 | 
			
		||||
    msg_error "No ${APP} Installation Found!"
 | 
			
		||||
    exit
 | 
			
		||||
  fi
 | 
			
		||||
  if check_for_gh_release "checkmk" "checkmk/checkmk"; then
 | 
			
		||||
   
 | 
			
		||||
  RELEASE=$(curl -fsSL https://api.github.com/repos/checkmk/checkmk/tags | grep "name" | awk '{print substr($2, 3, length($2)-4) }' | tr ' ' '\n' | grep -Ev 'rc|b' | sort -V | tail -n 1)
 | 
			
		||||
  msg_info "Updating ${APP} to v${RELEASE}"
 | 
			
		||||
  $STD omd stop monitoring
 | 
			
		||||
@@ -41,7 +41,7 @@ function update_script() {
 | 
			
		||||
  rm -rf /opt/checkmk.deb
 | 
			
		||||
  msg_ok "Updated ${APP}"
 | 
			
		||||
  msg_ok "Updated Successfully"
 | 
			
		||||
  fi
 | 
			
		||||
  
 | 
			
		||||
  exit
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user