Codebase list live-build / 683949f share / hooks / normal / 0190-remove-temporary-files.hook.chroot
683949f

Tree @683949f (Download .tar.gz)

0190-remove-temporary-files.hook.chroot @683949fraw · history · blame

#!/bin/sh

set -e

# Remove temporary files
rm -rf /var/cache/man/*

for _DIRECTORY in /tmp /var/tmp
do
	rm -rf ${_DIRECTORY}

	mkdir -p ${_DIRECTORY}
	chmod 1777 ${_DIRECTORY}
done