mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 21:19:09 -07:00
Update deb-to-kali script to handle relative paths.
This commit is contained in:
@@ -5,6 +5,8 @@ if [ `whoami` != "root" ] ; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
BASEDIR=`dirname $0`
|
||||||
|
|
||||||
cat >/etc/apt/sources.list.d/kali.list <<KALI_EOF
|
cat >/etc/apt/sources.list.d/kali.list <<KALI_EOF
|
||||||
deb http://http.kali.org/kali sana main non-free contrib
|
deb http://http.kali.org/kali sana main non-free contrib
|
||||||
deb-src http://http.kali.org/kali sana main non-free contrib
|
deb-src http://http.kali.org/kali sana main non-free contrib
|
||||||
@@ -12,6 +14,6 @@ deb http://security.kali.org/kali-security/ sana/updates main contrib non-free
|
|||||||
deb-src http://security.kali.org/kali-security/ sana/updates main contrib non-free
|
deb-src http://security.kali.org/kali-security/ sana/updates main contrib non-free
|
||||||
KALI_EOF
|
KALI_EOF
|
||||||
|
|
||||||
/usr/bin/apt-key add kali-repo.key
|
/usr/bin/apt-key add ${BASEDIR}/kali-repo.key
|
||||||
/usr/bin/apt-get update
|
/usr/bin/apt-get update
|
||||||
/usr/bin/apt-get install kali-linux-full
|
/usr/bin/apt-get install -y kali-linux-full
|
||||||
|
|||||||
Reference in New Issue
Block a user