mirror_lxc/templates
Rune Juhl Jacobsen fc20af631e
Change file check to also check file size (-f => -s)
Because the `fetch` wget wrapper outputs files to stdout we may end up in a
situation where wget fails but the files are still created. This can happen
e.g. when the host date is out of sync leading to a failed certificate
check, resulting in the creation of empty key files.

Once the empty files have been created the template will try to use them which
causes the certificate check to fail.

By using `-s` instead of `-f` the template will re-fetch the files unless they
exist AND have a size greater than zero.

Signed-off-by: Rune Juhl Jacobsen <runejuhl@petardo.dk>
2017-09-18 19:56:42 +02:00
..
lxc-alpine.in Change file check to also check file size (-f => -s) 2017-09-18 19:56:42 +02:00
lxc-altlinux.in Use "rsync -SHaAX" to copy the cached rootfs into place 2017-07-28 13:09:36 -05:00
lxc-archlinux.in confile: lxc.tty --> lxc.tty.max 2017-07-02 14:40:07 +02:00
lxc-busybox.in templates: remove legacy key from busybox 2017-08-22 00:02:28 +02:00
lxc-centos.in Use "rsync -SHaAX" to copy the cached rootfs into place 2017-07-28 13:09:36 -05:00
lxc-cirros.in doc: s/aa_profile/apparmor.profile/g 2017-07-12 09:53:58 +08:00
lxc-debian.in Use deb.debian.org as the default Debian mirror 2017-08-24 14:48:03 +02:00
lxc-download.in Fix syntax error in lxc-download 2017-07-11 02:58:56 -04:00
lxc-fedora-legacy.in Use "rsync -SHaAX" to copy the cached rootfs into place 2017-07-28 13:09:36 -05:00
lxc-fedora.in Use "rsync -SHaAX" to copy the cached rootfs into place 2017-07-28 13:09:36 -05:00
lxc-gentoo.in confile: lxc.tty --> lxc.tty.max 2017-07-02 14:40:07 +02:00
lxc-openmandriva.in Use "rsync -SHaAX" to copy the cached rootfs into place 2017-07-28 13:09:36 -05:00
lxc-opensuse.in templates/opensuse: support leap 42.3 2017-08-01 09:15:30 +02:00
lxc-oracle.in confile: lxc.rootfs --> lxc.rootfs.path 2017-07-02 14:40:06 +02:00
lxc-plamo.in plamo: Delete unnecessary process during container shutdown 2017-09-12 16:03:31 +09:00
lxc-pld.in doc: s/aa_profile/apparmor.profile/g 2017-07-12 09:53:58 +08:00
lxc-sabayon.in doc: bugfixes 2017-09-06 01:03:38 +02:00
lxc-slackware.in confile: lxc.mount --> lxc.mount.fstab 2017-07-02 14:40:06 +02:00
lxc-sparclinux.in confile: lxc.rootfs --> lxc.rootfs.path 2017-07-02 14:40:06 +02:00
lxc-sshd.in doc: s/aa_profile/apparmor.profile/g 2017-07-12 09:53:58 +08:00
lxc-ubuntu-cloud.in confile: lxc.rootfs --> lxc.rootfs.path 2017-07-02 14:40:06 +02:00
lxc-ubuntu.in Check that there is netplan binary, rather than just just a config directory. 2017-09-01 21:49:03 +02:00
lxc-voidlinux.in confile: lxc.rootfs --> lxc.rootfs.path 2017-07-02 14:40:06 +02:00
Makefile.am Merge pull request #1371 from ganto/lxc-fedora 2017-02-16 22:12:33 +01:00