From f431d59f93efd818715b37c8a8f88fcd030a4f1a Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Fri, 5 Dec 2025 10:30:35 +0100 Subject: [PATCH] Improve update script generation for containers The update script now uses the OS variable for OS-based containers instead of the app name, and the script source URL has been updated to use git.community-scripts.org. This ensures the correct update script is fetched for each container type. --- misc/install.func | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/misc/install.func b/misc/install.func index 95ec028f8..54f037141 100644 --- a/misc/install.func +++ b/misc/install.func @@ -904,7 +904,9 @@ EOF fi # Create update script - echo "bash -c \"\$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/ct/${app}.sh)\"" >/usr/bin/update + # Use var_os for OS-based containers, otherwise use app name + local update_script_name="${var_os:-$app}" + echo "bash -c \"\$(curl -fsSL https://git.community-scripts.org/community-scripts/ProxmoxVED/raw/branch/main/ct/${update_script_name}.sh)\"" >/usr/bin/update chmod +x /usr/bin/update # Inject SSH authorized keys if provided