Create temp file for SonarQube download

Added temporary file creation for SonarQube installation.
This commit is contained in:
CanbiZ
2025-11-06 15:54:37 +01:00
committed by GitHub
parent 003d6327de
commit b16501652c

View File

@@ -39,6 +39,7 @@ function update_script() {
msg_ok "Backup created"
msg_info "Installing sonarqube"
temp_file=$(mktemp)
RELEASE=$(curl -fsSL https://api.github.com/repos/SonarSource/sonarqube/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
curl -fsSL "https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-${RELEASE}.zip" -o $temp_file
unzip -q "$temp_file" -d /opt