From e33b0a93b18f5412d4286b05d570a0c003291306 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 22 Jul 2025 12:23:37 +0200 Subject: [PATCH] Update create_lxc.sh --- misc/create_lxc.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/misc/create_lxc.sh b/misc/create_lxc.sh index fe4fa8ec..b7d1f46e 100644 --- a/misc/create_lxc.sh +++ b/misc/create_lxc.sh @@ -111,8 +111,7 @@ function select_storage() { esac # >>> NEW: support STORAGE preset <<< - if [ -n "${STORAGE:-}" ]; then - # validate the given storage + if [ "$CONTENT" = "rootdir" ] && [ -n "${STORAGE:-}" ]; then if pvesm status -content "$CONTENT" | awk 'NR>1 {print $1}' | grep -qx "$STORAGE"; then STORAGE_RESULT="$STORAGE" msg_info "Using preset storage: $STORAGE_RESULT for $CONTENT_LABEL" @@ -122,7 +121,6 @@ function select_storage() { return 2 fi fi - local -a MENU local -A STORAGE_MAP local COL_WIDTH=0