vms/recipes/alpine/provisionning/conf/mathcbox/initmatchbox.start

19 lines
505 B
Bash

#!/bin/sh
FL_VERSIONS="current 3374.2.0"
MATCHBOX_DIR="/var/lib/matchbox"
ASSETS_DIR="${MATCHBOX_DIR}/assets/"
echo "Provisionning matchbox with flatcar images"
echo " * Current stable image (try 1)"
for version in ${FL_VERSIONS}; do
while ! bash -x /usr/local/bin/get-flatcar stable ${version} ${ASSETS_DIR}; do
sleep 1
echo " * ${version} stable image (try ${item})"
if [ "${tout}" -eq "${item}" ]; then
break
exit 1
fi
item=$((item+1))
done
done