ABOUT
This script will add/remove a crontab schedule that updates the operating system of all LXCs every Sunday at midnight.
infoDownloads and installs the update script locally to `/usr/local/bin/update-lxcs.sh`. Cron runs the local copy — no remote code execution at runtime.
infoTo exclude containers from updating, edit `/etc/update-lxcs.conf` and add their CTIDs: `EXCLUDE=100,101,102`
infoLogs are written to `/var/log/update-lxcs-cron.log`.
infoYou can watch the source of local updater here: `https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/update-lxcs-cron.sh`.
INSTALL
Approved local installer
Run this command in the Proxmox VE shell. It downloads the immutable approved file, verifies SHA-256, and only then executes it.
( url='https://scripts.francoisvw.com/snapshots/c19711ea1b2526bec67e34be948114e255b5a811/tools/pve/cron-update-lxcs.sh'; sha='e75fed70e0ed0947bcab7f7fe22b8d3f16467766ea2f4f80623814eede33b154'; tmp="$(mktemp)" || exit; curl -fsSL "$url" -o "$tmp" && printf '%s %s\n' "$sha" "$tmp" | sha256sum -c - && bash "$tmp"; rc=$?; rm -f "$tmp"; exit "$rc" )
View approved source ↗Path tools/pve/cron-update-lxcs.shSHA-256 e75fed70e0ed0947bcab7f7fe22b8d3f16467766ea2f4f80623814eede33b154 LOCAL CHANGE REVIEW
Approved vs latest fetched source
Sign in with a passkey to inspect pending source changes. Approved content remains public.