Skip to content

Cron-Update-LXCSΒ #1628

@MickLesk

Description

@MickLesk

Name of the Script

cron-update-lxcs

Script Type

PVE Tool (tools/pve)

πŸ“‹ Script Details

cron-update-lxc.sh:

  • Script is now downloaded once and installed locally as /usr/local/bin/update-lxcs.sh β€” cron runs the local copy, no remote code execution at runtime
  • SHA256 hash shown before install; optional script content review step added
  • New Update menu option: shows diff against current version, prompts before applying
  • Legacy curl-based cron entries are auto-migrated on install
  • Config file /etc/update-lxcs.conf created on first install with inline docs
  • Remove also cleans up the local script file; config is intentionally kept

update-lxcs-cron.sh:

  • Exclusions merged from both CLI args and /etc/update-lxcs.conf
  • Template containers are properly skipped (was broken: always evaluated to false)
  • pct shutdown now uses --timeout 60 instead of unbounded & background wait
  • Error handling: update failures are caught and logged per container instead of silently ignored
  • Unknown OS types now print a warning instead of silently skipping

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions