remove fi
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled

This commit is contained in:
CanbiZ 2025-10-21 14:42:47 +02:00
parent 7e4a0018f8
commit d6fee2e0ea

View File

@ -1735,7 +1735,6 @@ choose_and_set_storage_for_file() {
msg_ok "Updated ${key} → ${STORAGE_RESULT}" msg_ok "Updated ${key} → ${STORAGE_RESULT}"
} }
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# check_container_resources() # check_container_resources()
# #
@ -3240,12 +3239,16 @@ create_lxc_container() {
offer_lxc_stack_upgrade_and_maybe_retry "yes" offer_lxc_stack_upgrade_and_maybe_retry "yes"
rc=$? rc=$?
case $rc in case $rc in
0) : ;; # success - container created, continue 0) : ;; # success - container created, continue
2) echo "Upgrade was declined. Please update and re-run: 2)
echo "Upgrade was declined. Please update and re-run:
apt update && apt install --only-upgrade pve-container lxc-pve" apt update && apt install --only-upgrade pve-container lxc-pve"
exit 231 ;; exit 231
3) echo "Upgrade and/or retry failed. Please inspect: $LOGFILE" ;;
exit 231 ;; 3)
echo "Upgrade and/or retry failed. Please inspect: $LOGFILE"
exit 231
;;
esac esac
else else
msg_error "Container creation failed even with local fallback. See $LOGFILE" msg_error "Container creation failed even with local fallback. See $LOGFILE"
@ -3267,16 +3270,19 @@ create_lxc_container() {
offer_lxc_stack_upgrade_and_maybe_retry "yes" offer_lxc_stack_upgrade_and_maybe_retry "yes"
rc=$? rc=$?
case $rc in case $rc in
0) : ;; # success - container created, continue 0) : ;; # success - container created, continue
2) echo "Upgrade was declined. Please update and re-run: 2)
echo "Upgrade was declined. Please update and re-run:
apt update && apt install --only-upgrade pve-container lxc-pve" apt update && apt install --only-upgrade pve-container lxc-pve"
exit 231 ;; exit 231
3) echo "Upgrade and/or retry failed. Please inspect: $LOGFILE" ;;
exit 231 ;; 3)
echo "Upgrade and/or retry failed. Please inspect: $LOGFILE"
exit 231
;;
esac esac
else else
fi msg_error "Container creation failed. See $LOGFILE"
else
if whiptail --yesno "pct create failed.\nDo you want to enable verbose debug mode and view detailed logs?" 12 70; then if whiptail --yesno "pct create failed.\nDo you want to enable verbose debug mode and view detailed logs?" 12 70; then
set -x set -x
bash -x -c "pct create $CTID local:vztmpl/${TEMPLATE} ${PCT_OPTIONS[*]}" 2>&1 | tee -a "$LOGFILE" bash -x -c "pct create $CTID local:vztmpl/${TEMPLATE} ${PCT_OPTIONS[*]}" 2>&1 | tee -a "$LOGFILE"