99-zzz_truncate_logs 109 B

123456789
  1. #!/bin/sh
  2. set -e
  3. echo "Truncating log files"
  4. for file in $(find /var/log/ -type f); do
  5. : > "${file}"
  6. done