@@ -87,7 +87,6 @@ if command -v curl >/dev/null 2>&1; then
8787 source <( curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/error_handler.func)
8888 load_functions
8989 catch_errors
90- # echo "(build.func) Loaded core.func via curl"
9190elif command -v wget > /dev/null 2>&1 ; then
9291 source <( wget -qO- https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/core.func)
9392 source <( wget -qO- https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/error_handler.func)
@@ -2242,7 +2241,7 @@ build_container() {
22422241 esac
22432242 fi
22442243
2245- # IP (immer zwingend, Standard dhcp)
2244+ # IP (always required, default dhcp)
22462245 NET_STRING+=" ,ip=${NET:- dhcp} "
22472246
22482247 # Gateway
@@ -2834,12 +2833,12 @@ destroy_lxc() {
28342833 return 1
28352834 fi
28362835
2837- # Abbruch bei Ctrl-C / Ctrl-D / ESC
2836+ # Abort on Ctrl-C / Ctrl-D / ESC
28382837 trap ' echo; msg_error "Aborted by user (SIGINT/SIGQUIT)"; return 130' INT QUIT
28392838
28402839 local prompt
28412840 if ! read -rp " Remove this Container? <y/N> " prompt; then
2842- # read gibt != 0 zurück bei Ctrl-D/ESC
2841+ # read returns non-zero on Ctrl-D/ESC
28432842 msg_error " Aborted input (Ctrl-D/ESC)"
28442843 return 130
28452844 fi
@@ -3555,16 +3554,6 @@ create_lxc_container() {
35553554
35563555 LOGFILE=" /tmp/pct_create_${CTID} _$( date +%Y%m%d_%H%M%S) _${SESSION_ID} .log"
35573556
3558- # # DEBUG: Show the actual command that will be executed
3559- # echo "[DEBUG] ===== PCT CREATE COMMAND DETAILS ====="
3560- # echo "[DEBUG] CTID: $CTID"
3561- # echo "[DEBUG] Template: ${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE}"
3562- # echo "[DEBUG] PCT_OPTIONS (will be word-split):"
3563- # echo "$PCT_OPTIONS" | sed 's/^/ /'
3564- # echo "[DEBUG] Full command line:"
3565- # echo " pct create $CTID ${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE} $PCT_OPTIONS"
3566- # echo "[DEBUG] ========================================"
3567-
35683557 msg_debug " pct create command: pct create $CTID ${TEMPLATE_STORAGE} :vztmpl/${TEMPLATE} $PCT_OPTIONS "
35693558 msg_debug " Logfile: $LOGFILE "
35703559
@@ -3609,7 +3598,7 @@ create_lxc_container() {
36093598 0) : ;; # success - container created, continue
36103599 2)
36113600 echo " Upgrade was declined. Please update and re-run:
3612- apt update && apt install --only-upgrade pve-container lxc-pve"
3601+ apt update && apt install --only-upgrade pve-container lxc-pve"
36133602 exit 231
36143603 ;;
36153604 3)
@@ -3641,7 +3630,7 @@ create_lxc_container() {
36413630 0) : ;; # success - container created, continue
36423631 2)
36433632 echo " Upgrade was declined. Please update and re-run:
3644- apt update && apt install --only-upgrade pve-container lxc-pve"
3633+ apt update && apt install --only-upgrade pve-container lxc-pve"
36453634 exit 231
36463635 ;;
36473636 3)
0 commit comments