summaryrefslogtreecommitdiff
path: root/share/hooks/0200-remove-temporary-files.chroot
blob: fd220e0303a708639b9774434a4b3c4bb702c884 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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