lb-config/hooks/normal/0140-remove-log-files.hook....

10 lines
101 B
Bash
Executable File

#!/bin/sh
set -e
# Truncate log files
for _FILE in $(find /var/log/ -type f)
do
: > ${_FILE}
done