summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xshare/hooks/normal/0140-remove-log-files.hook.chroot2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/hooks/normal/0140-remove-log-files.hook.chroot b/share/hooks/normal/0140-remove-log-files.hook.chroot
index f95e54686..b3d1c9e22 100755
--- a/share/hooks/normal/0140-remove-log-files.hook.chroot
+++ b/share/hooks/normal/0140-remove-log-files.hook.chroot
@@ -5,5 +5,5 @@ set -e
# Truncate log files
for _FILE in $(find /var/log/ -type f)
do
- : > ${_FILE}
+ truncate --no-create --size=0 ${_FILE}
done