fix preflight
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
{
|
{
|
||||||
"name": "Arch Linux",
|
"name": "Arch Linux",
|
||||||
"slug": "archlinux",
|
"slug": "archlinux",
|
||||||
"categories": [2],
|
"categories": [
|
||||||
|
2
|
||||||
|
],
|
||||||
"date_created": "2026-04-27",
|
"date_created": "2026-04-27",
|
||||||
"type": "ct",
|
"type": "ct",
|
||||||
"updateable": true,
|
"updateable": true,
|
||||||
|
|||||||
@@ -532,7 +532,7 @@ preflight_template_available() {
|
|||||||
local local_match=0
|
local local_match=0
|
||||||
while read -r storage_name _; do
|
while read -r storage_name _; do
|
||||||
[[ -z "$storage_name" ]] && continue
|
[[ -z "$storage_name" ]] && continue
|
||||||
if pveam list "$storage_name" 2>/dev/null | awk '{print $1}' | grep -qE "^${storage_name}:vztmpl/${search_pattern}"; then
|
if pveam list "$storage_name" 2>/dev/null | awk '{print $1}' | grep -qE "^${storage_name}:vztmpl/${search_pattern}[._-]"; then
|
||||||
local_match=1
|
local_match=1
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
@@ -545,7 +545,7 @@ preflight_template_available() {
|
|||||||
|
|
||||||
# Check online catalog
|
# Check online catalog
|
||||||
local online_match=0
|
local online_match=0
|
||||||
if pveam available -section system 2>/dev/null | awk '{print $2}' | grep -qE "^${search_pattern}[.-]"; then
|
if pveam available -section system 2>/dev/null | awk '{print $2}' | grep -qE "^${search_pattern}[._-]"; then
|
||||||
online_match=1
|
online_match=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user