live-build/share/hooks/0150-remove-temporary-files...

13 lines
157 B
Bash
Executable File

#!/bin/sh
set -e
# Remove temporary files
for _DIRECTORY in /tmp /var/tmp
do
rm -rf ${_DIRECTORY}
mkdir -p ${_DIRECTORY}
chmod 1777 ${_DIRECTORY}
done