11 lines
244 B
Django/Jinja
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
|