install.fairie/home/.chezmoiscripts/qubes/run_onchange_before_13-install-official-templates.tmpl

10 lines
340 B
Cheetah
Raw Normal View History

#!/usr/bin/env bash
### Ensure Qubes templates exist and download if they are not present
for TEMPLATE of {{ .qubes.templates | toString | replace "[" "" | replace "]" "" }}; do
if [ ! -f "/var/lib/qubes/vm-templates/$TEMPLATE" ]; then
logg info "Installing $TEMPLATE"
sudo qubes-dom0-update "qubes-template-$TEMPLATE"
fi
done