Danny Bessems
43d83e8e31
All checks were successful
continuous-integration/drone/push Build is passing
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
|