diff options
author | Daniel Baumann <daniel@debian.org> | 2012-12-17 00:08:41 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2012-12-17 00:08:41 +0100 |
commit | 995031ed72ff79e213576be8ad363194ae006e00 (patch) | |
tree | 976b84d077774fe9bd2f5e6f5974b7a1e3e9f004 /share/hooks/0160-remove-log-files.chroot | |
parent | f8ac7662a7255368e6f8c14fc52e89707482a625 (diff) | |
download | vyos-live-build-995031ed72ff79e213576be8ad363194ae006e00.tar.gz vyos-live-build-995031ed72ff79e213576be8ad363194ae006e00.zip |
Using consistent naming for default hooks.
Diffstat (limited to 'share/hooks/0160-remove-log-files.chroot')
-rwxr-xr-x | share/hooks/0160-remove-log-files.chroot | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/share/hooks/0160-remove-log-files.chroot b/share/hooks/0160-remove-log-files.chroot new file mode 100755 index 000000000..f95e54686 --- /dev/null +++ b/share/hooks/0160-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 |