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.
This commit is contained in:
parent
fa9e9fe4fe
commit
f431d59f93
@ -904,7 +904,9 @@ EOF
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Create update script
|
# 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
|
chmod +x /usr/bin/update
|
||||||
|
|
||||||
# Inject SSH authorized keys if provided
|
# Inject SSH authorized keys if provided
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user