summaryrefslogtreecommitdiff
path: root/share/hooks/0150-remove-temporary-files.chroot
blob: 21bc5ee6f6bf26b269c2ba3741f494f33f5ed992 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

set -e

# Remove temporary files
for _DIRECTORY in /tmp /var/tmp
do
	rm -rf ${_DIRECTORY}

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