lxc-config/hooks/remove-journal

11 lines
121 B
Bash
Executable File

#!/bin/bash
set -eu
JOURNAL="$LXC_ROOTFS_PATH/var/log/journal"
if [ -d "$JOURNAL" ]; then
cd $JOURNAL
rm -rf *
fi