Update create_lxc.sh

This commit is contained in:
CanbiZ 2025-07-01 13:11:55 +02:00
parent 6f4ac74113
commit 98efb80292

View File

@ -113,7 +113,8 @@ function select_storage() {
if [[ "$LINE" =~ ^(dir|lvm|lvmthin|zfspool|.*):[[:space:]]*(.+)$ ]]; then
CURRENT_STORAGE="${BASH_REMATCH[2]}"
elif [[ "$LINE" =~ ^[[:space:]]*content[[:space:]]*=[[:space:]]*(.+)$ ]]; then
[[ ",${BASH_REMATCH[1]}," =~ ,$CONTENT, ]] && VALID_STORAGES+=("$CURRENT_STORAGE")
local CONTENTS="${BASH_REMATCH[1]}"
[[ ",${CONTENTS}," =~ ,$CONTENT, ]] && VALID_STORAGES+=("$CURRENT_STORAGE")
fi
done </etc/pve/storage.cfg