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"
|
msg_ok "Template found online: $TEMPLATE"
|
||||||
else
|
else
|
||||||
# Nothing found - offer alternatives
|
# 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 < <(
|
mapfile -t AVAILABLE_VERSIONS < <(
|
||||||
pveam available -section system 2>/dev/null |
|
pveam available -section system 2>/dev/null |
|
||||||
@ -3058,7 +3063,7 @@ create_lxc_container() {
|
|||||||
|
|
||||||
if [[ ${#AVAILABLE_VERSIONS[@]} -gt 0 ]]; then
|
if [[ ${#AVAILABLE_VERSIONS[@]} -gt 0 ]]; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "${BL}Available ${PCT_OSTYPE} versions:${CL}"
|
msg_info "Available ${PCT_OSTYPE} versions:"
|
||||||
for i in "${!AVAILABLE_VERSIONS[@]}"; do
|
for i in "${!AVAILABLE_VERSIONS[@]}"; do
|
||||||
echo " [$((i + 1))] ${AVAILABLE_VERSIONS[$i]}"
|
echo " [$((i + 1))] ${AVAILABLE_VERSIONS[$i]}"
|
||||||
done
|
done
|
||||||
@ -3076,11 +3081,16 @@ create_lxc_container() {
|
|||||||
exit 225
|
exit 225
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
msg_info "Cancelled"
|
msg_info "Installation cancelled"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
msg_error "No templates available for ${PCT_OSTYPE}"
|
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
|
exit 225
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user