diff --git a/misc/create_lxc.sh b/misc/create_lxc.sh index 64825855..3f5ce290 100644 --- a/misc/create_lxc.sh +++ b/misc/create_lxc.sh @@ -271,7 +271,7 @@ if [ ${#TEMPLATES[@]} -eq 0 ]; then fi ensure_template_ready -ensure_template_ready() { +function ensure_template_ready() { local template_path template_path="$(pvesm path $TEMPLATE_STORAGE:vztmpl/$TEMPLATE 2>/dev/null || echo "/var/lib/vz/template/cache/$TEMPLATE")"