10 lines
232 B
Bash
Executable File
10 lines
232 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 install dialog
|
|
fchroot "$1" apt -y autoclean
|
|
find "$1/var/log" -type f -delete |