Update ct/sonarqube.sh

This commit is contained in:
Slaviša Arežina 2025-10-01 00:36:47 +02:00 committed by GitHub
parent c409d58b95
commit 5b63249087
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,8 +28,7 @@ function update_script() {
exit
fi
RELEASE=$(curl -s https://api.github.com/repos/SonarSource/sonarqube/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then
if check_for_gh_release "sonarqube" "SonarSource/sonarqube"; then
msg_info "Updating ${APP} to v${RELEASE}"
systemctl stop sonarqube