windvn/path/make-base

8 lines
193 B
Bash
Executable File

#!/usr/bin/env bash
if [ -d "$1" ]; then
rm -rf "$1"
fi
mkdir "$1"
debootstrap --arch="$OPUS_ARCH" "$OPUS_DIST" "$1" "$OPUS_URL"
fchroot "$1" apt -y autoclean
find "$1/var/log" -type f -delete