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,21 +27,21 @@ function update_script() {
 | 
				
			|||||||
    msg_error "No ${APP} Installation Found!"
 | 
					    msg_error "No ${APP} Installation Found!"
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  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)
 | 
					  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}"
 | 
					  msg_info "Updating ${APP} to v${RELEASE}"
 | 
				
			||||||
    $STD omd stop monitoring
 | 
					  $STD omd stop monitoring
 | 
				
			||||||
    $STD omd cp monitoring monitoringbackup
 | 
					  $STD omd cp monitoring monitoringbackup
 | 
				
			||||||
    curl -fsSL "https://download.checkmk.com/checkmk/${RELEASE}/check-mk-raw-${RELEASE}_0.bookworm_amd64.deb" -o "/opt/checkmk.deb"
 | 
					  curl -fsSL "https://download.checkmk.com/checkmk/${RELEASE}/check-mk-raw-${RELEASE}_0.bookworm_amd64.deb" -o "/opt/checkmk.deb"
 | 
				
			||||||
    $STD apt-get install -y /opt/checkmk.deb
 | 
					  $STD apt-get install -y /opt/checkmk.deb
 | 
				
			||||||
    $STD omd --force -V ${RELEASE}.cre update --conflict=install monitoring
 | 
					  $STD omd --force -V ${RELEASE}.cre update --conflict=install monitoring
 | 
				
			||||||
    $STD omd start monitoring
 | 
					  $STD omd start monitoring
 | 
				
			||||||
    $STD omd -f rm monitoringbackup
 | 
					  $STD omd -f rm monitoringbackup
 | 
				
			||||||
    $STD omd cleanup
 | 
					  $STD omd cleanup
 | 
				
			||||||
    rm -rf /opt/checkmk.deb
 | 
					  rm -rf /opt/checkmk.deb
 | 
				
			||||||
    msg_ok "Updated ${APP}"
 | 
					  msg_ok "Updated ${APP}"
 | 
				
			||||||
    msg_ok "Updated Successfully"
 | 
					  msg_ok "Updated Successfully"
 | 
				
			||||||
  fi
 | 
					  
 | 
				
			||||||
  exit
 | 
					  exit
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user