LXC:一鍵下載最新版本 LXC 模板

Debian:

URL="https://uk.images.linuxcontainers.org/images/debian/buster/amd64/default/" && curl -s $URL | grep folder | awk -v url="$URL" '{split($5,a,">"); split(a[2],b,"/")} END{system("curl "url b[1] "/rootfs.tar.xz -o /var/lib/vz/template/cache/Debian-buster-"b[1]".tar.xz")}'

Ubuntu-Focal(20.04LTS):

URL="https://uk.images.linuxcontainers.org/images/ubuntu/focal/amd64/default/" && curl -s $URL | grep folder | awk -v url="$URL" '{split($5,a,">"); split(a[2],b,"/")} END{system("curl "url b[1] "/rootfs.tar.xz -o /var/lib/vz/template/cache/Ubuntu-20.04-"b[1]".tar.xz")}'

OpenWRT:

URL="https://uk.images.linuxcontainers.org/images/openwrt/21.02/amd64/default/" && curl -s $URL | grep folder | awk -v url="$URL" '{split($5,a,">"); split(a[2],b,"/")} END{system("curl "url b[1] "/rootfs.tar.xz -o /var/lib/vz/template/cache/OpenWRT-21.02-"b[1]".tar.xz")}'

關聯:

THE END
分享
二维码
< <上一篇
下一篇>>
文章目录
关闭
目 录