Update ct/sonarqube.sh
This commit is contained in:
parent
c409d58b95
commit
5b63249087
@ -28,8 +28,7 @@ function update_script() {
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
RELEASE=$(curl -s https://api.github.com/repos/SonarSource/sonarqube/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
|
if check_for_gh_release "sonarqube" "SonarSource/sonarqube"; then
|
||||||
if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then
|
|
||||||
msg_info "Updating ${APP} to v${RELEASE}"
|
msg_info "Updating ${APP} to v${RELEASE}"
|
||||||
|
|
||||||
systemctl stop sonarqube
|
systemctl stop sonarqube
|
||||||
|
Loading…
x
Reference in New Issue
Block a user