diff --git a/ct/sonarqube.sh b/ct/sonarqube.sh index 0ac979445..ab7cd3c47 100644 --- a/ct/sonarqube.sh +++ b/ct/sonarqube.sh @@ -43,6 +43,7 @@ function update_script() { RELEASE=$(get_latest_github_release "SonarSource/sonarqube") curl -fsSL "https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-${RELEASE}.zip" -o $temp_file unzip -q "$temp_file" -d /opt + rm -f "$temp_file" mv /opt/sonarqube-${RELEASE} /opt/sonarqube echo "${RELEASE}" > ~/.sonarqube msg_ok "Updated SonarQube" diff --git a/install/sonarqube-install.sh b/install/sonarqube-install.sh index 0856eb513..b84d7b03b 100644 --- a/install/sonarqube-install.sh +++ b/install/sonarqube-install.sh @@ -21,6 +21,7 @@ temp_file=$(mktemp) RELEASE=$(get_latest_github_release "SonarSource/sonarqube") curl -fsSL "https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-${RELEASE}.zip" -o $temp_file unzip -q "$temp_file" -d /opt +rm -f "$temp_file" mv /opt/sonarqube-* /opt/sonarqube $STD useradd -r -m -U -d /opt/sonarqube -s /bin/bash sonarqube chown -R sonarqube:sonarqube /opt/sonarqube diff --git a/misc/build.func b/misc/build.func index 4af0752dc..0f1e90417 100644 --- a/misc/build.func +++ b/misc/build.func @@ -3613,8 +3613,6 @@ build_container() { fi # Build PCT_OPTIONS as string for export - TEMP_DIR=$(mktemp -d) - pushd "$TEMP_DIR" >/dev/null local _func_url if [ "$var_os" == "alpine" ]; then _func_url="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/alpine-install.func"