summaryrefslogtreecommitdiff
path: root/share/hooks/0160-remove-log-files.chroot
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-12-17 00:08:41 +0100
committerDaniel Baumann <daniel@debian.org>2012-12-17 00:08:41 +0100
commit995031ed72ff79e213576be8ad363194ae006e00 (patch)
tree976b84d077774fe9bd2f5e6f5974b7a1e3e9f004 /share/hooks/0160-remove-log-files.chroot
parentf8ac7662a7255368e6f8c14fc52e89707482a625 (diff)
downloadvyos-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-xshare/hooks/0160-remove-log-files.chroot9
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