lxc-config/hooks/remove-journal

11 lines
121 B
Plaintext
Raw Normal View History

2014-08-18 08:29:43 +00:00
#!/bin/bash
2015-01-28 21:22:30 +00:00
set -eu
2014-08-18 08:29:43 +00:00
JOURNAL="$LXC_ROOTFS_PATH/var/log/journal"
if [ -d "$JOURNAL" ]; then
cd $JOURNAL
rm -rf *
fi