Files
Helper-Scripts-ProxmoxVE/install
CanbiZ (MickLesk)andSam Heinz b098501a37 tools.func: centralize deploy tail + trap-based tmpdir cleanup (#15872)
* tools.func: replace rm -rf with find for safer directory cleanup

* tools.func: replace rm -rf with find for safer directory cleanup

* refactor(tools.func): centralize deploy tail + trap-based tmpdir cleanup

Extract the duplicated post-download logic of the fetch_and_deploy_*
helpers into two shared functions and switch per-branch cleanup to a
single RETURN trap.

- _deploy_source_tarball: shared source-tarball tail (6 call sites)
- _deploy_unpacked_archive: shared prebuild-archive tail (3 call sites)
- RETURN trap per function guarantees tmpdir/unpack_tmp cleanup on every
  return path, replacing ~40 manual `rm -rf "$tmpdir"` lines
- CLEAN_INSTALL now lives in the helpers instead of 12 copies

Behavior-preserving except: codeberg prebuild gains .txz support and
uses helper return codes; from_url resets shopt on error paths.

* Add _download_source_tarball with retry/validation

Introduce `_download_source_tarball` helper that validates gzip integrity after download and retries up to 3 times. This guards against truncated-but-valid-HTTP responses from GitHub/GitLab/Codeberg on-the-fly archive generation. Replace ad-hoc curl/curl_download calls in fetch_and_deploy_* functions with the new helper. Also remove redundant tmpdir cleanup before early returns (tmpdir is cleaned up at function exit).

* Fix Manyfold Ruby setup home initialization

Create the `manyfold` service user before calling `setup_ruby` so `/home/manyfold` exists when rbenv profile snippets are written. Also harden `setup_ruby` by creating `$HOME` if missing, preventing profile-write failures for installers that pass a home directory before creating the user.

* Update install/manyfold-install.sh

---------

Co-authored-by: Sam Heinz <sam@samheinz.com>
2026-07-19 22:53:46 +10:00
..
2026-07-16 18:01:44 +10:00
2026-06-27 21:07:03 +02:00
2026-06-29 22:30:31 +02:00
2026-07-05 21:34:42 +02:00
2026-06-29 09:59:43 +02:00
2026-06-30 19:44:42 +10:00
2026-07-14 14:16:10 +02:00
2026-07-05 22:28:00 +02:00
2026-07-17 14:30:55 +02:00
2026-06-29 23:11:26 +02:00
2026-07-13 17:39:10 +02:00
2026-07-11 20:00:36 +02:00
2026-07-15 20:55:10 +10:00
2026-07-17 14:30:27 +02:00
2026-06-25 14:06:24 +02:00
2026-06-22 21:11:47 +02:00
2026-07-02 11:06:43 +02:00
2026-07-16 09:01:53 +02:00
2026-07-10 10:57:27 +02:00
2026-07-16 18:02:13 +10:00
2026-07-14 14:15:32 +02:00