Nicolas Massé 3 months ago
parent
commit
aa7c827e96
  1. 2
      bootc/scenario3a/root/usr/local/bin/bootstrap-vm.sh

2
bootc/scenario3a/root/usr/local/bin/bootstrap-vm.sh

@ -63,7 +63,7 @@ chcon system_u:object_r:virt_image_t:s0 "$temp_dir/root.qcow2"
if [ -f /etc/flightctl/config.yaml ]; then if [ -f /etc/flightctl/config.yaml ]; then
if [ -n "${FLIGHTCTL_LABELS_OVERRIDE:-}" ]; then if [ -n "${FLIGHTCTL_LABELS_OVERRIDE:-}" ]; then
echo "Overriding default labels with: ${FLIGHTCTL_LABELS_OVERRIDE}" echo "Overriding default labels with: ${FLIGHTCTL_LABELS_OVERRIDE}"
yq e ". * { \"default-labels\": ${FLIGHTCTL_LABELS_OVERRIDE} } | .default-labels.aap-group = ((.default-labels.site + \"_\" + .default-labels.type) | sub(\"-\", \"_\"))" /etc/flightctl/config.yaml > "$temp_dir/config.yaml" yq e ". * { \"default-labels\": ${FLIGHTCTL_LABELS_OVERRIDE} } | .default-labels.aap_group = ((.default-labels.site + \"_\" + .default-labels.type) | sub(\"-\", \"_\"))" /etc/flightctl/config.yaml > "$temp_dir/config.yaml"
else else
cp /etc/flightctl/config.yaml "$temp_dir/config.yaml" cp /etc/flightctl/config.yaml "$temp_dir/config.yaml"
fi fi

Loading…
Cancel
Save