Update build.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
This commit is contained in:
parent
0c2382c2d7
commit
9c9dc863a2
@ -3046,7 +3046,12 @@ create_lxc_container() {
|
||||
msg_ok "Template found online: $TEMPLATE"
|
||||
else
|
||||
# Nothing found - offer alternatives
|
||||
msg_error "No template found for ${PCT_OSTYPE} ${PCT_OSVERSION}"
|
||||
msg_error "Template not found for ${PCT_OSTYPE} ${PCT_OSVERSION}"
|
||||
echo ""
|
||||
echo "This could mean:"
|
||||
echo " • The version is not yet available in the Proxmox template repository"
|
||||
echo " • Your Proxmox VE might need an update to access newer templates"
|
||||
echo " • The version number might be incorrect"
|
||||
|
||||
mapfile -t AVAILABLE_VERSIONS < <(
|
||||
pveam available -section system 2>/dev/null |
|
||||
@ -3058,7 +3063,7 @@ create_lxc_container() {
|
||||
|
||||
if [[ ${#AVAILABLE_VERSIONS[@]} -gt 0 ]]; then
|
||||
echo ""
|
||||
echo "${BL}Available ${PCT_OSTYPE} versions:${CL}"
|
||||
msg_info "Available ${PCT_OSTYPE} versions:"
|
||||
for i in "${!AVAILABLE_VERSIONS[@]}"; do
|
||||
echo " [$((i + 1))] ${AVAILABLE_VERSIONS[$i]}"
|
||||
done
|
||||
@ -3076,11 +3081,16 @@ create_lxc_container() {
|
||||
exit 225
|
||||
fi
|
||||
else
|
||||
msg_info "Cancelled"
|
||||
msg_info "Installation cancelled"
|
||||
exit 0
|
||||
fi
|
||||
else
|
||||
msg_error "No templates available for ${PCT_OSTYPE}"
|
||||
echo ""
|
||||
echo "Please check:"
|
||||
echo " • Run: pveam update"
|
||||
echo " • Check network connectivity"
|
||||
echo " • Verify Proxmox VE version: pveversion"
|
||||
exit 225
|
||||
fi
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user