diff options
author | Daniel Baumann <daniel@debian.org> | 2012-12-19 05:56:58 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2012-12-19 06:44:52 +0100 |
commit | 54fee8377727bc5458ed70a9a603b9aa54a7b9e7 (patch) | |
tree | 8f33b2029456940f59c74d4c0863cd759f6d9d48 /share/hooks/0140-remove-log-files.chroot | |
parent | 9a727410661b2888b571e1426fd069a23e21d28f (diff) | |
download | vyos-live-build-54fee8377727bc5458ed70a9a603b9aa54a7b9e7.tar.gz vyos-live-build-54fee8377727bc5458ed70a9a603b9aa54a7b9e7.zip |
Renumbering hooks.
Diffstat (limited to 'share/hooks/0140-remove-log-files.chroot')
-rwxr-xr-x | share/hooks/0140-remove-log-files.chroot | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/share/hooks/0140-remove-log-files.chroot b/share/hooks/0140-remove-log-files.chroot new file mode 100755 index 000000000..f95e54686 --- /dev/null +++ b/share/hooks/0140-remove-log-files.chroot @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +# Truncate log files +for _FILE in $(find /var/log/ -type f) +do + : > ${_FILE} +done |