HelperScripts-for-ProxmoxVE/misc
CanbiZ (MickLesk) e55fe43e2d
core: remove unused TEMP_DIR mktemp leak in build_container / clean sonarqube (#13708)
* fix(core): remove unused TEMP_DIR mktemp leak in build_container

The build_container() function created a temp directory via mktemp -d and
pushd into it, but never popd or rm -rf. The directory was not used for
anything — FUNCTIONS_FILE_PATH is downloaded into a variable, not a file.

Remove the mktemp -d and pushd entirely to eliminate the leak.

* fix(sonarqube): clean up temp file after zip extraction

The SonarQube update function (ct/sonarqube.sh) never deleted the
downloaded zip file (~200-500 MB) from /tmp after extraction. On LXC
containers with 4-8 GB disks, this accumulates with every update and
can eventually fill the disk.

Also add explicit cleanup in the install script instead of relying
solely on cleanup_lxc() pattern matching.
2026-04-13 15:59:42 +02:00
..
images remove old files and assets (#9991) 2025-12-15 17:37:26 +01:00
alpine-install.func core: APT/APK Mirror Fallback for CDN Failures (#13316) 2026-03-26 16:53:04 +01:00
alpine-tools.func core/tools: replace generic return 1 exit_codes with more specific exit_codes (#13311) 2026-03-26 16:07:38 +01:00
api.func Make shell command substitutions safe with || true (#13279) 2026-03-25 13:06:21 +01:00
build.func core: remove unused TEMP_DIR mktemp leak in build_container / clean sonarqube (#13708) 2026-04-13 15:59:42 +02:00
cloud-init.func core/tools: replace generic return 1 exit_codes with more specific exit_codes (#13311) 2026-03-26 16:07:38 +01:00
core.func core: silent() function - use return instead of exit to allow || true error handling (#13529) 2026-04-05 21:02:56 +02:00
error_handler.func core: silent() function - use return instead of exit to allow || true error handling (#13529) 2026-04-05 21:02:56 +02:00
install.func APT Proxy: Support full URLs (http/https with custom ports) (#13474) 2026-04-03 21:17:07 +02:00
tools.func tools.func: prevent script crash when entering GitHub token after rate limit (#13638) 2026-04-10 11:28:52 +02:00
vm-core.func Add donate & script page badges to descriptions (#13596) 2026-04-08 21:40:52 +02:00