We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9302e2e commit 9bf30deCopy full SHA for 9bf30de
ct/create_lxc.sh
@@ -221,7 +221,8 @@ mapfile -t TEMPLATES < <(pveam available -section system | sed -n "s/.*\($TEMPLA
221
exit 207
222
}
223
TEMPLATE="${TEMPLATES[-1]}"
224
-TEMPLATE_PATH="/var/lib/vz/template/cache/$TEMPLATE"
+TEMPLATE_PATH="$(pvesm path $TEMPLATE_STORAGE:vztmpl/$TEMPLATE)"
225
+# Without NAS/Mount: TEMPLATE_PATH="/var/lib/vz/template/cache/$TEMPLATE"
226
# Check if template exists, if corrupt remove and redownload
227
if ! pveam list "$TEMPLATE_STORAGE" | grep -q "$TEMPLATE" || ! zstdcat "$TEMPLATE_PATH" | tar -tf - >/dev/null 2>&1; then
228
msg_warn "Template $TEMPLATE not found in storage or seems to be corrupted. Redownloading."
0 commit comments