diff --git a/share/hooks/normal/0140-remove-log-files.hook.chroot b/share/hooks/normal/0140-remove-log-files.hook.chroot index f95e546..b3d1c9e 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 @@ # Truncate log files for _FILE in $(find /var/log/ -type f) do - : > ${_FILE} + truncate --no-create --size=0 ${_FILE} done