From 7c9fa29895ada2b077d9c8480486a1394b7aa226 Mon Sep 17 00:00:00 2001 From: MickLesk <47820557+MickLesk@users.noreply.github.com> Date: Fri, 23 Oct 2026 10:20:58 +0200 Subject: [PATCH] Allow Composer as root in every script Only setup_composer exported COMPOSER_ALLOW_SUPERUSER, so an update that ran composer without it waited at Composer's 'Continue as root/super user?' prompt, which $STD hides (ProxmoxVE #18071). --- core/core.func | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/core.func b/core/core.func index 3a05c29..354865b 100644 --- a/core/core.func +++ b/core/core.func @@ -19,6 +19,9 @@ [[ -n "${_CORE_FUNC_LOADED:-}" ]] && return _CORE_FUNC_LOADED=1 +# Scripts run as root; without this Composer waits at a "Continue as root?" prompt that $STD hides +export COMPOSER_ALLOW_SUPERUSER=1 + if [[ -z "${HOME:-}" ]]; then HOME="$(getent passwd "$(id -u)" 2>/dev/null | cut -d: -f6)" export HOME="${HOME:-/root}"