#!/bin/sh set -e IMG_DL_DIR="/var/lib/vz/images/000" TPL_DL_DIR="/var/lib/vz/template/cache" mkdir -p "${IMG_DL_DIR}" mkdir -p "${TPL_DL_DIR}" curl --progress-bar --fail --retry 3 --output "${IMG_DL_DIR}/jammy-server-cloudimg-amd64-disk-kvm.qcow2" "https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64-disk-kvm.img" curl --progress-bar --fail --retry 3 --remote-name --output-dir "${TPL_DL_DIR}" "http://download.proxmox.com/images/system/ubuntu-22.04-standard_22.04-1_amd64.tar.zst"