From 70cc9749fae7611543d66d02830b52b7197347bc Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Fri, 3 Apr 2026 00:37:46 +0200 Subject: [PATCH] Cron LXC Updater: Add full PATH for cron environment (#13473) --- tools/pve/update-lxcs-cron.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/pve/update-lxcs-cron.sh b/tools/pve/update-lxcs-cron.sh index 68e523a5b..15ca40540 100644 --- a/tools/pve/update-lxcs-cron.sh +++ b/tools/pve/update-lxcs-cron.sh @@ -7,6 +7,9 @@ # This script is installed locally by cron-update-lxcs.sh and executed # by cron. It updates all LXC containers using their native package manager. +# Ensure full PATH when running via cron (pct lives in /usr/sbin) +export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin + CONF_FILE="/etc/update-lxcs.conf" echo -e "\n $(date)"