summaryrefslogtreecommitdiffstats
path: root/config/chroot_local-hooks/99-zzz_truncate_logs
blob: 1542fcd8c7b26d1862fe0418c90931f27a9cb5d9 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh

set -e

echo "Truncating log files"
for file in $(find /var/log/ -type f); do
	: > "${file}"
done