Update create_lxc.sh
This commit is contained in:
parent
58695de2e0
commit
e33b0a93b1
@ -111,8 +111,7 @@ function select_storage() {
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# >>> NEW: support STORAGE preset <<<
|
# >>> NEW: support STORAGE preset <<<
|
||||||
if [ -n "${STORAGE:-}" ]; then
|
if [ "$CONTENT" = "rootdir" ] && [ -n "${STORAGE:-}" ]; then
|
||||||
# validate the given storage
|
|
||||||
if pvesm status -content "$CONTENT" | awk 'NR>1 {print $1}' | grep -qx "$STORAGE"; then
|
if pvesm status -content "$CONTENT" | awk 'NR>1 {print $1}' | grep -qx "$STORAGE"; then
|
||||||
STORAGE_RESULT="$STORAGE"
|
STORAGE_RESULT="$STORAGE"
|
||||||
msg_info "Using preset storage: $STORAGE_RESULT for $CONTENT_LABEL"
|
msg_info "Using preset storage: $STORAGE_RESULT for $CONTENT_LABEL"
|
||||||
@ -122,7 +121,6 @@ function select_storage() {
|
|||||||
return 2
|
return 2
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local -a MENU
|
local -a MENU
|
||||||
local -A STORAGE_MAP
|
local -A STORAGE_MAP
|
||||||
local COL_WIDTH=0
|
local COL_WIDTH=0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user