11 lines
228 B
Plaintext
11 lines
228 B
Plaintext
|
#!/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
|