mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-12-25 08:26:23 +01:00
Implements central solution for automatic cleanup after updates: - Modified start() function in build.func to call cleanup_lxc after update_script - Applies to ALL scripts automatically (no individual script changes needed) - Prevents disk space growth from accumulated caches (yarn/npm/pnpm/composer/pip/etc) - Aligns update behavior with install behavior (which already calls cleanup_lxc) This fixes issue #10117 (Jotty disk space growth) and prevents similar issues in all other scripts that use package managers. Benefits: - Single point of maintenance - Consistent behavior across all update scripts - Reduces disk usage after every update - No need to manually add cleanup_lxc to 100+ update_script functions Impact: All LXC update operations will now automatically clean caches after successful completion, just like installations do.