2015-02-10 15:18:02 +00:00
|
|
|
#!/bin/bash -e
|
2014-04-24 13:42:18 +00:00
|
|
|
# vim: set ts=4 sw=4 sts=4 et :
|
|
|
|
|
2015-02-10 15:18:02 +00:00
|
|
|
source "${SCRIPTSDIR}/vars.sh"
|
|
|
|
source "${SCRIPTSDIR}/distribution.sh"
|
2014-04-24 13:42:18 +00:00
|
|
|
|
2015-02-10 15:18:02 +00:00
|
|
|
##### '=========================================================================
|
|
|
|
debug ' Cleaning up...'
|
|
|
|
##### '=========================================================================
|
2014-10-16 16:03:05 +00:00
|
|
|
|
2015-02-10 15:18:02 +00:00
|
|
|
# ==============================================================================
|
2014-10-22 20:37:26 +00:00
|
|
|
# Execute any template flavor or sub flavor 'pre' scripts
|
2015-02-10 15:18:02 +00:00
|
|
|
# ==============================================================================
|
|
|
|
buildStep "${0}" "pre"
|
2014-07-26 02:33:49 +00:00
|
|
|
|
2015-02-10 15:18:02 +00:00
|
|
|
#### '-------------------------------------------------------------------------
|
|
|
|
info ' Cleaning up any left over files from installation'
|
|
|
|
#### '-------------------------------------------------------------------------
|
2014-10-28 08:09:55 +00:00
|
|
|
rm -rf "${INSTALLDIR}/var/cache/apt/archives/*"
|
|
|
|
rm -f "${INSTALLDIR}/etc/apt/sources.list.d/qubes-builder.list"
|
|
|
|
rm -f "${INSTALLDIR}/etc/apt/trusted.gpg.d/qubes-builder.gpg"
|
2015-02-10 15:18:02 +00:00
|
|
|
rm -rf "${INSTALLDIR}/${TMPDIR}"
|
2014-10-14 16:02:12 +00:00
|
|
|
|
2015-02-10 15:18:02 +00:00
|
|
|
# ==============================================================================
|
2014-10-22 20:37:26 +00:00
|
|
|
# Execute any template flavor or sub flavor 'post' scripts
|
2015-02-10 15:18:02 +00:00
|
|
|
# ==============================================================================
|
|
|
|
buildStep "${0}" "post"
|