mirror of
https://github.com/Matir/skel.git
synced 2026-09-22 12:56:56 -07:00
21 lines
501 B
Bash
Executable File
21 lines
501 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ "$(id -u)" -ne 0 ] ; then
|
|
echo "This must be run as root." >&2
|
|
exit 1
|
|
fi
|
|
|
|
BASEDIR="$(dirname "$0")"
|
|
if ! test -f "${BASEDIR}/keys/gpg/kali-repo.key" ; then
|
|
echo "Couldn't find key, are you in the right place?" >&2
|
|
exit 1
|
|
fi
|
|
|
|
cat >/etc/apt/sources.list.d/kali.list <<KALI_EOF
|
|
deb http://http.kali.org/kali kali-rolling main contrib non-free
|
|
KALI_EOF
|
|
|
|
/usr/bin/apt-key add "${BASEDIR}/keys/gpg/kali-repo.key"
|
|
/usr/bin/apt-get update
|
|
/usr/bin/apt-get install -y kali-linux-full
|