Packer.Images/ansible/roles/firstboot/files/ansible_payload/templates/compresstarballs.j2
Danny Bessems c9a8598a35
All checks were successful
continuous-integration/drone/push Build is passing
Move tarball compression to background service;Housekeeping
2022-11-23 10:25:35 +01:00

11 lines
228 B
Django/Jinja

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