9 lines
200 B
Bash
Executable File
9 lines
200 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
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 |