HelperScripts-for-ProxmoxVE/misc
CanbiZ (MickLesk) ff4f5f6a0a
core: update dynamic values in LXC profile on update_motd_ip (#11268)
* feat(build.func): update dynamic values in LXC profile on update_motd_ip

- Updates only OS/Hostname/IP lines in /etc/profile.d/00_lxc-details.sh
- Checks if values changed before updating (avoids unnecessary I/O)
- Preserves user customizations (app name, GitHub link, custom lines)
- Only updates if file exists and contains 'community-scripts' marker
- Fixes outdated OS version display after in-place upgrades (e.g., Bookworm → Trixie)
- Now reads OS name/version from /etc/os-release at login time

Fixes community-scripts/ProxmoxVE issue with static MOTD after OS upgrade

* add update_motd_ip in routine
2026-01-28 13:26:20 +01:00
..
images remove old files and assets (#9991) 2025-12-15 17:37:26 +01:00
alpine-install.func Call get_lxc_ip explicitly after network is up 2026-01-19 17:40:25 +01:00
alpine-tools.func Three-tier defaults system | security improvements | error_handler | improved logging | improved container creation | improved architecture (#9540) 2025-12-04 07:52:18 +01:00
api.func chore: bump copyright to 2026 - happy new year (#10585) 2026-01-06 13:28:12 +01:00
build.func core: update dynamic values in LXC profile on update_motd_ip (#11268) 2026-01-28 13:26:20 +01:00
cloud-init.func chore: bump copyright to 2026 - happy new year (#10585) 2026-01-06 13:28:12 +01:00
core.func core: refine cleanup_lxc to safely clear caches (#11197) 2026-01-26 14:55:04 +01:00
error_handler.func chore: bump copyright to 2026 - happy new year (#10585) 2026-01-06 13:28:12 +01:00
install.func Call get_lxc_ip explicitly after network is up 2026-01-19 17:40:25 +01:00
tools.func fix(tools): prevent systemd-tmpfiles failure in unprivileged LXC during .deb install (#11271) 2026-01-28 13:25:07 +01:00