Packer.Images/ansible/roles/firstboot/files/ansible_payload/common/templates/compresstarballs.j2
Danny Bessems 43d83e8e31
All checks were successful
continuous-integration/drone/push Build is passing
Move files between payload folders;Define upgrade vapp properties;Join metacluster
2023-01-20 13:23:34 +01:00

11 lines
244 B
Django/Jinja

#!/bin/bash
# Change working directory
pushd {{ _template.service.workingdir }}
# Compress *.tar files
if tar -czf image-tarballs.tgz *.tar --remove-files; then
# Disable systemd unit
systemctl disable {{ _template.service.name }}
fi