diff options
author | Daniel Baumann <daniel@debian.org> | 2012-12-17 00:08:41 +0100 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2013-05-06 14:50:02 +0200 |
commit | 7ce3113f44550191fab4408f88843133331a5b5e (patch) | |
tree | 075279247c4a75208ec5ba29a6395fb471d12ab8 /share/hooks/0160-remove-log-files.chroot | |
parent | af54c6b82c9466f99572623d881a818007a26115 (diff) | |
download | vyos-live-build-7ce3113f44550191fab4408f88843133331a5b5e.tar.gz vyos-live-build-7ce3113f44550191fab4408f88843133331a5b5e.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 |